From e0114d64f5dfc38baa0a354c9bc505b3964a670b Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Thu, 1 Feb 2018 14:06:40 +0100 Subject: [PATCH] Fixed chatRoom.markAsRead when called from ChatMessageReceived callback --- src/chat/chat-room/chat-room.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/chat/chat-room/chat-room.cpp b/src/chat/chat-room/chat-room.cpp index e1039e86c..14e92cf85 100644 --- a/src/chat/chat-room/chat-room.cpp +++ b/src/chat/chat-room/chat-room.cpp @@ -418,9 +418,6 @@ shared_ptr ChatRoom::findChatMessage (const string &messageId, Chat void ChatRoom::markAsRead () { L_D(); - if (getUnreadChatMessageCount() == 0) - return; - CorePrivate *dCore = getCore()->getPrivate(); for (auto &chatMessage : dCore->mainDb->getUnreadChatMessages(d->chatRoomId)) chatMessage->sendDisplayNotification();