From 54148214929dd94b110f540ac4500a950b796ca1 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Wed, 7 Oct 2015 14:37:55 +0200 Subject: [PATCH] submodules: update belle-sip and linphone to fix file transfer upload error when running in background mode --- Classes/ChatTableViewController.m | 7 +++++-- submodules/belle-sip | 2 +- submodules/linphone | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Classes/ChatTableViewController.m b/Classes/ChatTableViewController.m index 493b1d0db..2593b18bf 100644 --- a/Classes/ChatTableViewController.m +++ b/Classes/ChatTableViewController.m @@ -82,10 +82,13 @@ static int sorted_history_comparison(LinphoneChatRoom *to_insert, LinphoneChatRo // store last message in user data LinphoneChatRoom *chat_room = iter->data; MSList *history = linphone_chat_room_get_history(iter->data, 1); - LinphoneChatMessage *last_msg = history ? history->data : NULL; + LinphoneChatMessage *last_msg = NULL; + if (history) { + last_msg = linphone_chat_message_ref(history->data); + ms_list_free(history); + } linphone_chat_room_set_user_data(chat_room, last_msg); sorted = ms_list_insert_sorted(sorted, chat_room, (MSCompareFunc)sorted_history_comparison); - iter = iter->next; } return sorted; diff --git a/submodules/belle-sip b/submodules/belle-sip index fac134fc0..0efd4dfd5 160000 --- a/submodules/belle-sip +++ b/submodules/belle-sip @@ -1 +1 @@ -Subproject commit fac134fc059a47d9d1279b8d27cc8374457afe0c +Subproject commit 0efd4dfd5b37fb28ba1ecbabcc8d37defddfd517 diff --git a/submodules/linphone b/submodules/linphone index fe9b63d2e..c4cb4d276 160000 --- a/submodules/linphone +++ b/submodules/linphone @@ -1 +1 @@ -Subproject commit fe9b63d2e86193e7919dc5409e59eb5ffa2c0c17 +Subproject commit c4cb4d2767b126bf45cb404a83ac1b29b99a8726