summary refs log tree commit diff
path: root/include/Cache.h
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-12-10 12:51:44 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-12-10 12:51:44 +0200
commitd872b1060bb362d439f971fa5f9f04e1907d7410 (patch)
tree224a02cb0305bd82bf34705eda4ce312dc077073 /include/Cache.h
parentHandle malformed state events (diff)
downloadnheko-d872b1060bb362d439f971fa5f9f04e1907d7410.tar.xz
Reset cache on breaking changes
fixes #154
Diffstat (limited to 'include/Cache.h')
-rw-r--r--include/Cache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/Cache.h b/include/Cache.h

index c16654d0..031c8b16 100644 --- a/include/Cache.h +++ b/include/Cache.h
@@ -39,6 +39,9 @@ public: void removeRoom(const QString &roomid); void setup(); + bool isFormatValid(); + void setCurrentFormat(); + private: void setNextBatchToken(lmdb::txn &txn, const QString &token); void insertRoomState(lmdb::txn &txn, const QString &roomid, const RoomState &state);