diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-03-26 23:13:42 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-03-26 23:13:42 +0900 |
commit | d38020752c4a03fdc5b74f9704b28b302ec5ebf8 (patch) | |
tree | a0e9ea02b9ffd128dc22452be8de290e66e8a77c /room.cpp | |
parent | 85d0ea867ee9b607595962dc93d4f09ac0ae1f9a (diff) | |
download | libquotient-d38020752c4a03fdc5b74f9704b28b302ec5ebf8.tar.gz libquotient-d38020752c4a03fdc5b74f9704b28b302ec5ebf8.zip |
Room::updateUnreadCount(): Fix a too stringent assertion
Diffstat (limited to 'room.cpp')
-rw-r--r-- | room.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -368,7 +368,7 @@ void Room::Private::setLastReadEvent(User* u, const QString& eventId) void Room::Private::updateUnreadCount(timeline_iter_t from, int knownMinimum) { - Q_ASSERT(from >= q->readMarker().base() && from < timeline.cend()); + Q_ASSERT(from >= q->readMarker().base() && from <= timeline.cend()); auto oldUnreadCount = unreadMessages; QElapsedTimer et; et.start(); // A cast to int, because on some environments count_if returns a long; |