From 6a19fe2f9ac2d853a6374ca093007114fa60c160 Mon Sep 17 00:00:00 2001 From: Jehan Monnier Date: Fri, 8 Feb 2019 15:15:43 +0100 Subject: [PATCH] update x3dh_server_url server url --- Classes/ChatsListTableView.m | 6 +++--- Resources/linphonerc-factory | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Classes/ChatsListTableView.m b/Classes/ChatsListTableView.m index a9f88c771..9c0ea8ded 100644 --- a/Classes/ChatsListTableView.m +++ b/Classes/ChatsListTableView.m @@ -162,7 +162,7 @@ static int sorted_history_comparison(LinphoneChatRoom *to_insert, LinphoneChatRo } else { bctbx_list_t *participants = linphone_chat_room_get_participants(cr); LinphoneParticipant *firstParticipant = participants ? (LinphoneParticipant *)participants->data : NULL; - const LinphoneAddress *addr = firstParticipant ? linphone_participant_get_address(firstParticipant) : linphone_chat_room_get_peer_address(cr); + const LinphoneAddress *addr = firstParticipant ? linphone_participant_get_address(firstParticipant) : peer_address; if (!linphone_address_get_username(addr)) { sorted = sorted->next; continue; @@ -184,8 +184,8 @@ static int sorted_history_comparison(LinphoneChatRoom *to_insert, LinphoneChatRo if (addresses.count >= 4) //send no more data than needed break; sorted = sorted->next; - } - + } + [defaults setObject:addresses forKey:@"chatrooms"]; } diff --git a/Resources/linphonerc-factory b/Resources/linphonerc-factory index c04b3b86e..0d300c98a 100644 --- a/Resources/linphonerc-factory +++ b/Resources/linphonerc-factory @@ -60,7 +60,7 @@ display_filter_auto_rotate=0 [lime] lime_v2=1 -x3dh_server_url=http://54.36.232.93:8082/flexisip-account-manager/x3dh-25519.php +x3dh_server_url=http://sip-staging.linphone.org:8083/flexisip-account-manager/x3dh-25519.php lime_update_threshold=86400 max_nb_device_per_participant=255 allow_message_in_unsafe_chatroom=1