aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/room.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index e8d9b1bf..3090cb7b 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -736,7 +736,7 @@ Room::Changes Room::Private::updateStats(const rev_iter_t& from,
qCDebug(MESSAGES).nospace()
<< "Recalculated partially read event statistics in "
<< q->objectName() << ": " << partiallyReadStats;
- return Change::PartiallyReadStats | Change::UnreadStats;
+ return changes | Change::PartiallyReadStats;
}
}
@@ -748,7 +748,7 @@ Room::Changes Room::Private::updateStats(const rev_iter_t& from,
const auto newStats = EventStats::fromRange(q, from, to);
Q_ASSERT(!newStats.isEstimate);
- if (newStats.notableCount == 0 || newStats.highlightCount == 0)
+ if (newStats.empty())
return changes;
const auto doAddStats = [this, &changes, newStats](EventStats& s,