diff --git a/Classes/CallView.m b/Classes/CallView.m index 0d2ac590f..d589e96e7 100644 --- a/Classes/CallView.m +++ b/Classes/CallView.m @@ -774,6 +774,7 @@ static void hideSpinner(LinphoneCall *call, void *user_data) { const LinphoneCall *currentCall = linphone_core_get_current_call(LC); const LinphoneAddress *addr = currentCall ? linphone_call_get_remote_address(currentCall) : NULL; // TODO encrpted or unencrpted + [LinphoneManager.instance lpConfigSetBool:TRUE forKey:@"create_chat"]; [PhoneMainView.instance getOrCreateOneToOneChatRoom:addr waitView:_waitView isEncrypted:FALSE]; } diff --git a/Classes/HistoryDetailsView.m b/Classes/HistoryDetailsView.m index d3b75725b..8ee5a2d47 100644 --- a/Classes/HistoryDetailsView.m +++ b/Classes/HistoryDetailsView.m @@ -210,11 +210,13 @@ static UICompositeViewDescription *compositeDescription = nil; - (IBAction)onChatClick:(id)event { const LinphoneAddress *addr = linphone_call_log_get_remote_address(callLog); + [LinphoneManager.instance lpConfigSetBool:TRUE forKey:@"create_chat"]; [PhoneMainView.instance getOrCreateOneToOneChatRoom:addr waitView:_waitView isEncrypted:FALSE]; } - (IBAction)onEncryptedChatClick:(id)sender { const LinphoneAddress *addr = linphone_call_log_get_remote_address(callLog); + [LinphoneManager.instance lpConfigSetBool:TRUE forKey:@"create_chat"]; [PhoneMainView.instance getOrCreateOneToOneChatRoom:addr waitView:_waitView isEncrypted:TRUE]; }