From 17135e362a3c7b5355934837b548ceab40af9a9f Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Fri, 28 Oct 2016 22:32:50 +0900 Subject: Relax logging a bit Kicking markMessagesAsRead() at each mouse move is still a bad idea - I'm looking at you Quaternion. --- room.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/room.cpp b/room.cpp index fa919f61..6fad463b 100644 --- a/room.cpp +++ b/room.cpp @@ -200,10 +200,12 @@ bool Room::promoteReadMarker(QString newLastReadEventId) if( d->unreadMessages && stillUnreadMessagesCount == 0) { d->unreadMessages = false; + qDebug() << "Room" << displayName() << ": no more unread messages"; emit unreadMessagesChanged(this); } - qDebug() << "Room" << displayName() - << ": still" << stillUnreadMessagesCount << "unread message(s)"; + if (stillUnreadMessagesCount > 0) + qDebug() << "Room" << displayName() + << ": still" << stillUnreadMessagesCount << "unread message(s)"; return newLastReadEventId.isEmpty() || lastReadEvent(localUser) == newLastReadEventId; } -- cgit v1.2.3