Commit 91352ffc authored by Gautier Pelloux-Prayer's avatar Gautier Pelloux-Prayer
Browse files

message_storage.c: remove invalid assert in linphone_chat_room_delete_message...

message_storage.c: remove invalid assert in linphone_chat_room_delete_message and force recomputation of unread messages count after removal, since database is not synced anymore with chat messages in memory
parent d9a2fb2e
......@@ -417,10 +417,9 @@ void linphone_chat_room_delete_message(LinphoneChatRoom *cr, LinphoneChatMessage
if(cr->unread_count >= 0 && !msg->is_read) {
assert(cr->unread_count > 0);
/* Invalidate unread_count when we modify the database, so that next
time we need it it will be recomputed from latest database state */
cr->unread_count = -1;
void linphone_chat_room_delete_history(LinphoneChatRoom *cr){
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment