mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-06 21:33:08 +00:00
get chat room from chat message instad of from
This commit is contained in:
parent
0b5b0915eb
commit
97a8f5ac98
1 changed files with 3 additions and 3 deletions
|
|
@ -261,12 +261,12 @@ static RootViewManager *rootViewManagerInstance = nil;
|
|||
#pragma mark - Event Functions
|
||||
|
||||
- (void)textReceived:(NSNotification *)notif {
|
||||
LinphoneAddress *from = [[notif.userInfo objectForKey:@"from_address"] pointerValue];
|
||||
LinphoneChatMessage *msg = [[notif.userInfo objectForKey:@"message"] pointerValue];
|
||||
NSString *callID = [notif.userInfo objectForKey:@"call-id"];
|
||||
[self updateApplicationBadgeNumber];
|
||||
LinphoneChatRoom *room = from ? linphone_core_get_chat_room(LC, from) : NULL;
|
||||
LinphoneChatRoom *room = msg ? linphone_chat_message_get_chat_room(msg) : NULL;
|
||||
|
||||
if (from == nil || room == NULL)
|
||||
if (!room)
|
||||
return;
|
||||
|
||||
ChatConversationView *view = VIEW(ChatConversationView);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue