Skip to content

Commit

Permalink
Store etag
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasFella committed Oct 24, 2023
1 parent 1f125e8 commit f1c82ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Quotient/e2ee/sssshandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ void SSSSHandler::loadMegolmBackup(const QByteArray& megolmDecryptionKey)
{
auto job = m_connection->callApi<GetRoomKeysVersionCurrentJob>();
connect(job, &BaseJob::finished, this, [this, job, megolmDecryptionKey](){
m_connection->database()->storeEncrypted("etag"_ls, job->etag().toLatin1());
auto authData = job->jsonData()["auth_data"_ls].toObject();
for (const auto& key : authData["signatures"_ls].toObject()[m_connection->userId()].toObject().keys()) {
const auto& edKey = m_connection->database()->edKeyForKeyId(m_connection->userId(), key);
Expand Down

0 comments on commit f1c82ca

Please sign in to comment.