aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--room.cpp6
1 files 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;
}