summary refs log tree commit diff
path: root/src/Cache.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-07-14 12:08:16 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-07-14 12:08:16 +0300
commit73dbd3c8dd78b41c8d93392eac74231e5b4a20d5 (patch)
tree8f48775d63a917faacfff03a55b1767bfb75477a /src/Cache.cc
parentProperly display the bottom border on the TopRoomBar (diff)
downloadnheko-73dbd3c8dd78b41c8d93392eac74231e5b4a20d5.tar.xz
Re-enable groups
Diffstat (limited to 'src/Cache.cc')
-rw-r--r--src/Cache.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Cache.cc b/src/Cache.cc

index c1f25f63..614e8a90 100644 --- a/src/Cache.cc +++ b/src/Cache.cc
@@ -987,7 +987,8 @@ Cache::getTimelineMessages(lmdb::txn &txn, const std::string &room_id) if (obj.count("event") == 0 || obj.count("token") == 0) continue; - mtx::events::collections::TimelineEvent event = obj.at("event"); + mtx::events::collections::TimelineEvent event; + mtx::events::collections::from_json(obj.at("event"), event); index += 1; @@ -1058,7 +1059,8 @@ Cache::getLastMessageInfo(lmdb::txn &txn, const std::string &room_id) if (obj.count("event") == 0) continue; - mtx::events::collections::TimelineEvent event = obj.at("event"); + mtx::events::collections::TimelineEvent event; + mtx::events::collections::from_json(obj.at("event"), event); cursor.close(); return utils::getMessageDescription(