зеркало из https://github.com/nextcloud/talk-ios.git
Merge pull request #1115 from nextcloud/fix-lobby-crash
Fix crash when lobby state is not correctly known
This commit is contained in:
Коммит
ecf3dcca72
|
@ -2393,6 +2393,13 @@ NSString * const NCChatViewControllerTalkToUserNotification = @"NCChatViewContro
|
|||
if (notification.object != self->_chatController) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ([self shouldPresentLobbyView]) {
|
||||
self->_hasRequestedInitialHistory = NO;
|
||||
[self startObservingRoomLobbyFlag];
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
NSMutableArray *messages = [notification.userInfo objectForKey:@"messages"];
|
||||
if (messages.count > 0) {
|
||||
|
@ -2443,7 +2450,6 @@ NSString * const NCChatViewControllerTalkToUserNotification = @"NCChatViewContro
|
|||
}
|
||||
|
||||
[self.tableView reloadData];
|
||||
[self checkLobbyState];
|
||||
|
||||
if (indexPathUnreadMessageSeparator) {
|
||||
[self.tableView scrollToRowAtIndexPath:indexPathUnreadMessageSeparator atScrollPosition:UITableViewScrollPositionMiddle animated:NO];
|
||||
|
|
Загрузка…
Ссылка в новой задаче