From 1312c139cc03d514feb6dfbd6324f149d3a54c88 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Mon, 9 Jul 2018 12:17:22 +0300 Subject: [PATCH] Don't pre-load messages from caches Requires backfilling which is not implemented. fixes #365 --- src/Cache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cache.cc b/src/Cache.cc index 1c3fa3dd..c1f25f63 100644 --- a/src/Cache.cc +++ b/src/Cache.cc @@ -961,7 +961,7 @@ Cache::roomMessages() auto roomsCursor = lmdb::cursor::open(txn, roomsDb_); while (roomsCursor.get(room_id, unused, MDB_NEXT)) - msgs.emplace(QString::fromStdString(room_id), getTimelineMessages(txn, room_id)); + msgs.emplace(QString::fromStdString(room_id), mtx::responses::Timeline()); roomsCursor.close(); txn.commit();