Do not increase unread message counter when sending one...

This commit is contained in:
Sylvain Berfini 2017-01-04 17:31:22 +01:00
parent c5d232691a
commit 4a04f3ba5a

View file

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