forked from mirrors/linphone-iphone
fix crash
This commit is contained in:
parent
76e6cf6119
commit
0656effd35
1 changed files with 2 additions and 2 deletions
|
|
@ -861,13 +861,13 @@ static RootViewManager *rootViewManagerInstance = nil;
|
|||
|
||||
#pragma mark - Chat room Functions
|
||||
|
||||
- (void) getOrCreateOneToOneChatRoom:(const LinphoneAddress *)remoteAddress waitView:(UIView *)waitView {
|
||||
- (void)getOrCreateOneToOneChatRoom:(const LinphoneAddress *)remoteAddress waitView:(UIView *)waitView {
|
||||
const LinphoneAddress *local = linphone_proxy_config_get_contact(linphone_core_get_default_proxy_config(LC));
|
||||
LinphoneChatRoom *room = linphone_core_find_one_to_one_chat_room(LC, local, remoteAddress);
|
||||
if (!room) {
|
||||
bctbx_list_t *addresses = bctbx_list_new((void*)remoteAddress);
|
||||
[self createChatRoomWithSubject:LINPHONE_DUMMY_SUBJECT addresses:addresses andWaitView:waitView];
|
||||
bctbx_list_free_with_data(addresses, (void (*)(void *))linphone_address_unref);
|
||||
bctbx_list_free(addresses);
|
||||
return;
|
||||
}
|
||||
ChatConversationView *view = VIEW(ChatConversationView);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue