diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-07-17 23:50:18 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-07-17 23:50:18 +0300 |
commit | e4dedbcaba544b8cd9b7fea20ece4dad262b2c34 (patch) | |
tree | d80efcc5a10d0d1747d1fd7113010113f0848103 /src/ChatPage.cpp | |
parent | Bump version to v0.5.1 (diff) | |
download | nheko-e4dedbcaba544b8cd9b7fea20ece4dad262b2c34.tar.xz |
Mark own read messages with a double checkmark (#377)
Diffstat (limited to 'src/ChatPage.cpp')
-rw-r--r-- | src/ChatPage.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp index cc7a5741..6f5e31e5 100644 --- a/src/ChatPage.cpp +++ b/src/ChatPage.cpp @@ -685,6 +685,11 @@ ChatPage::bootstrap(QString userid, QString homeserver, QString token) try { cache::init(userid); + connect(cache::client(), + &Cache::newReadReceipts, + view_manager_, + &TimelineViewManager::updateReadReceipts); + const bool isInitialized = cache::client()->isInitialized(); const bool isValid = cache::client()->isFormatValid(); @@ -700,6 +705,7 @@ ChatPage::bootstrap(QString userid, QString homeserver, QString token) loadStateFromCache(); return; } + } catch (const lmdb::error &e) { nhlog::db()->critical("failure during boot: {}", e.what()); cache::client()->deleteData(); |