Added support for refreshing the device list, marking current device with a checkmark instead of a lock
This commit is contained in:
parent
acc257ea06
commit
456a41bcdf
8 changed files with 72 additions and 8 deletions
|
|
@ -4045,6 +4045,16 @@ Cache::updateUserKeys(const std::string &sync_token, const mtx::responses::Query
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
Cache::markUserKeysOutOfDate(const std::vector<std::string> &user_ids)
|
||||
{
|
||||
auto currentBatchToken = nextBatchToken();
|
||||
auto txn = lmdb::txn::begin(env_);
|
||||
auto db = getUserKeysDb(txn);
|
||||
markUserKeysOutOfDate(txn, db, user_ids, currentBatchToken);
|
||||
txn.commit();
|
||||
}
|
||||
|
||||
void
|
||||
Cache::markUserKeysOutOfDate(lmdb::txn &txn,
|
||||
lmdb::dbi &db,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue