Mark own read messages with a double checkmark (#377)
This commit is contained in:
parent
40facd116e
commit
e4dedbcaba
12 changed files with 248 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue