mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 08:32:53 +02:00
Add more helpful message when trying to start DM with a user that does not exist (#224).
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user