summary refs log tree commit diff
path: root/src/ChatPage.cpp
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-07-17 23:50:18 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-07-17 23:50:18 +0300
commite4dedbcaba544b8cd9b7fea20ece4dad262b2c34 (patch)
treed80efcc5a10d0d1747d1fd7113010113f0848103 /src/ChatPage.cpp
parentBump version to v0.5.1 (diff)
downloadnheko-e4dedbcaba544b8cd9b7fea20ece4dad262b2c34.tar.xz
Mark own read messages with a double checkmark (#377)
Diffstat (limited to 'src/ChatPage.cpp')
-rw-r--r--src/ChatPage.cpp6
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();