mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Fix encrypted messages being pinned to the bottom after read marker fix
This commit is contained in:
parent
095b59c01f
commit
b80697b072
1 changed files with 2 additions and 1 deletions
|
@ -1370,7 +1370,8 @@ Cache::getLastMessageInfo(lmdb::txn &txn, const std::string &room_id)
|
||||||
auto obj = json::parse(msg);
|
auto obj = json::parse(msg);
|
||||||
|
|
||||||
if (obj.count("event") == 0 || !(obj["event"]["type"] == "m.room.message" ||
|
if (obj.count("event") == 0 || !(obj["event"]["type"] == "m.room.message" ||
|
||||||
obj["event"]["type"] == "m.sticker"))
|
obj["event"]["type"] == "m.sticker" ||
|
||||||
|
obj["event"]["type"] == "m.room.encrypted"))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
mtx::events::collections::TimelineEvent event;
|
mtx::events::collections::TimelineEvent event;
|
||||||
|
|
Loading…
Reference in a new issue