add property to use basic chatroom in case of 1-1 chat

This commit is contained in:
Jehan Monnier 2018-03-26 09:18:10 +02:00
parent 05557306aa
commit 9ba81e0383

View file

@ -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