From 9ba81e0383c610c567fd973d5699e75fbab720e9 Mon Sep 17 00:00:00 2001 From: Jehan Monnier Date: Mon, 26 Mar 2018 09:18:10 +0200 Subject: [PATCH] add property to use basic chatroom in case of 1-1 chat --- Classes/PhoneMainView.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/PhoneMainView.m b/Classes/PhoneMainView.m index 1d35bcd33..10d4d0bd3 100644 --- a/Classes/PhoneMainView.m +++ b/Classes/PhoneMainView.m @@ -877,7 +877,8 @@ static RootViewManager *rootViewManagerInstance = nil; } - (void)createChatRoomWithSubject:(const char *)subject addresses:(bctbx_list_t *)addresses andWaitView:(UIView *)waitView { - if (!linphone_proxy_config_get_conference_factory_uri(linphone_core_get_default_proxy_config(LC))) { + if (!linphone_proxy_config_get_conference_factory_uri(linphone_core_get_default_proxy_config(LC)) + || ([[LinphoneManager instance] lpConfigBoolForKey:@"prefer_basic_chat_room" withDefault:FALSE] && bctbx_list_size(addresses) == 1)) { // If there's no factory uri, create a basic chat room if (bctbx_list_size(addresses) != 1) { // Display Error: unsuported group chat