mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-28 08:39:20 +00:00
Don't crash when the chat room doesn't exist
This commit is contained in:
parent
2c0f04abaf
commit
581df47d44
1 changed files with 2 additions and 2 deletions
|
|
@ -351,9 +351,9 @@
|
|||
NSString *remoteContact = (NSString*)[notification.userInfo objectForKey:@"from"];
|
||||
// Go to ChatRoom view
|
||||
[[PhoneMainView instance] changeCurrentView:[ChatViewController compositeViewDescription]];
|
||||
LinphoneChatRoom*room = [self findChatRoomForContact:remoteContact];
|
||||
ChatRoomViewController *controller = DYNAMIC_CAST([[PhoneMainView instance] changeCurrentView:[ChatRoomViewController compositeViewDescription] push:TRUE], ChatRoomViewController);
|
||||
if(controller != nil) {
|
||||
LinphoneChatRoom*room = [self findChatRoomForContact:remoteContact];
|
||||
if(controller != nil && room != nil) {
|
||||
[controller setChatRoom:room];
|
||||
}
|
||||
} else if([notification.userInfo objectForKey:@"callLog"] != nil) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue