aboutsummaryrefslogtreecommitdiff
path: root/room.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-03-26 23:13:42 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-03-26 23:13:42 +0900
commitd38020752c4a03fdc5b74f9704b28b302ec5ebf8 (patch)
treea0e9ea02b9ffd128dc22452be8de290e66e8a77c /room.cpp
parent85d0ea867ee9b607595962dc93d4f09ac0ae1f9a (diff)
downloadlibquotient-d38020752c4a03fdc5b74f9704b28b302ec5ebf8.tar.gz
libquotient-d38020752c4a03fdc5b74f9704b28b302ec5ebf8.zip
Room::updateUnreadCount(): Fix a too stringent assertion
Diffstat (limited to 'room.cpp')
-rw-r--r--room.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/room.cpp b/room.cpp
index 01cba079..d7014a10 100644
--- a/room.cpp
+++ b/room.cpp
@@ -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;