From c5f93efcd380e609bb632e15b3209b04e7a1f9bd Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Mon, 7 Sep 2020 19:03:54 +0200 Subject: [PATCH] Actually use room account data --- src/Cache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cache.cpp b/src/Cache.cpp index a5181880..98fe64c0 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp @@ -1031,7 +1031,7 @@ Cache::saveState(const mtx::responses::Sync &res) updatedInfo.version = getRoomVersion(txn, statesdb).toStdString(); // Process the account_data associated with this room - if (!res.account_data.events.empty()) { + if (!room.second.account_data.events.empty()) { auto accountDataDb = getAccountDataDb(txn, room.first); bool has_new_tags = false;