Add more helpful message when trying to start DM with a user that does not exist (#224).

This commit is contained in:
langleyd
2021-06-09 14:57:40 +01:00
parent 3e8d79175c
commit afced894dc
5 changed files with 9 additions and 5 deletions
@@ -603,9 +603,8 @@
if (isDirect && inviteArray.count)
{
[[AppDelegate theDelegate] startDirectChatWithUserId:inviteArray.firstObject completion:^{
self->createBarButtonItem.enabled = YES;
[self stopActivityIndicator];
}];
}
else
@@ -625,7 +624,7 @@
MXLogDebug(@"[StartChatViewController] Create room failed");
// Alert user
[[AppDelegate theDelegate] showErrorAsAlert:error];
[[AppDelegate theDelegate] showAlertWithTitle:nil message:NSLocalizedStringFromTable(@"room_creation_dm_error", @"Vector", nil)];
};
[self.mainSession vc_canEnableE2EByDefaultInNewRoomWithUsers:inviteArray success:^(BOOL canEnableE2E) {