forked from mirrors/linphone-iphone
Fix crash when opening chatroom with a different orientation than the one it was previously on before going into background
This commit is contained in:
parent
fd9a110c8f
commit
9dcd761b6d
1 changed files with 2 additions and 1 deletions
|
|
@ -316,6 +316,7 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {
|
||||
[super didRotateFromInterfaceOrientation:fromInterfaceOrientation];
|
||||
if ([[UIApplication sharedApplication] applicationState] == UIApplicationStateBackground) {
|
||||
[self refreshImageDrawer];
|
||||
return;
|
||||
}
|
||||
composingVisible = !composingVisible;
|
||||
|
|
@ -1679,7 +1680,7 @@ void on_chat_room_conference_alert(LinphoneChatRoom *cr, const LinphoneEventLog
|
|||
}
|
||||
|
||||
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
|
||||
return [self canAdminEphemeral:_chatRoom] ? 3 : 2;
|
||||
return (_chatRoom && [self canAdminEphemeral:_chatRoom]) ? 3 : 2;
|
||||
}
|
||||
|
||||
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue