From b80697b072ba093796c7bc321fefbc5ec3987b84 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Fri, 28 Feb 2020 19:29:43 +0100 Subject: [PATCH] Fix encrypted messages being pinned to the bottom after read marker fix --- src/Cache.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Cache.cpp b/src/Cache.cpp index 856c2942..0f33a276 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp @@ -1370,7 +1370,8 @@ Cache::getLastMessageInfo(lmdb::txn &txn, const std::string &room_id) auto obj = json::parse(msg); 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; mtx::events::collections::TimelineEvent event;