mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
Improve read status handling in room list
Only consider the room as unread, if there is a message in the room and only consider message and sticker events as messages. fixes #65
This commit is contained in:
parent
653ad0be97
commit
62b962cb44
1 changed files with 3 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue