fix IPAD go to chat view from CallView or HistoryDetailsView

This commit is contained in:
Danmei Chen 2020-04-07 15:56:11 +02:00
parent 92815c79cf
commit 8cc619da3b
2 changed files with 3 additions and 0 deletions

View file

@ -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];
}

View file

@ -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];
}