Added support for refreshing the device list, marking current device with a checkmark instead of a lock

This commit is contained in:
Thulinma 2021-09-19 22:55:12 +02:00
parent acc257ea06
commit 456a41bcdf
8 changed files with 72 additions and 8 deletions

View file

@ -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,