summary refs log tree commit diff
path: root/src/ChatPage.cc
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 /src/ChatPage.cc
parentHandle malformed state events (diff)
downloadnheko-d872b1060bb362d439f971fa5f9f04e1907d7410.tar.xz
Reset cache on breaking changes
fixes #154
Diffstat (limited to 'src/ChatPage.cc')
-rw-r--r--src/ChatPage.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ChatPage.cc b/src/ChatPage.cc

index ab5aa263..100c18f4 100644 --- a/src/ChatPage.cc +++ b/src/ChatPage.cc
@@ -334,6 +334,12 @@ ChatPage::bootstrap(QString userid, QString homeserver, QString token) try { cache_->setup(); + if (!cache_->isFormatValid()) { + cache_->deleteData(); + cache_->setup(); + cache_->setCurrentFormat(); + } + if (cache_->isInitialized()) { loadStateFromCache(); return;