summary refs log tree commit diff
path: root/src/Cache.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-07-09 12:17:22 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-07-09 12:17:22 +0300
commit1312c139cc03d514feb6dfbd6324f149d3a54c88 (patch)
treea2f790c14b69c2b5eb86733544864963430f2275 /src/Cache.cc
parentAdd -Wshadow (diff)
downloadnheko-1312c139cc03d514feb6dfbd6324f149d3a54c88.tar.xz
Don't pre-load messages from caches
Requires backfilling which is not implemented.

fixes #365
Diffstat (limited to 'src/Cache.cc')
-rw-r--r--src/Cache.cc2
1 files changed, 1 insertions, 1 deletions
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();