summary refs log tree commit diff
path: root/src/Cache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Cache.cpp')
-rw-r--r--src/Cache.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Cache.cpp b/src/Cache.cpp

index caa3f1ec..1361606f 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp
@@ -918,6 +918,9 @@ Cache::calculateRoomReadStatus(const std::string &room_id) const auto last_event_id = getLastMessageInfo(txn, room_id).event_id; const auto localUser = utils::localUser().toStdString(); + if (last_event_id.isEmpty()) + return false; + txn.commit(); // Retrieve all read receipts for that event.