From 4a04f3ba5a34a5d105fab1c635591a379f289000 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Wed, 4 Jan 2017 17:31:22 +0100 Subject: [PATCH] Do not increase unread message counter when sending one... --- coreapi/chat.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/coreapi/chat.c b/coreapi/chat.c index 0dfd6e597..00f2b67fe 100644 --- a/coreapi/chat.c +++ b/coreapi/chat.c @@ -451,9 +451,6 @@ void _linphone_chat_room_send_message(LinphoneChatRoom *cr, LinphoneChatMessage msg->message_id = ms_strdup(sal_op_get_call_id(op)); /* must be known at that time */ msg->storage_id = linphone_chat_message_store(msg); - if (cr->unread_count >= 0 && !linphone_chat_message_is_read(msg)) - cr->unread_count++; - if (cr->is_composing == LinphoneIsComposingActive) { cr->is_composing = LinphoneIsComposingIdle; }