Skip to content

Commit

Permalink
Merge branch '1.8' into 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
lnjX committed Jan 14, 2025
2 parents 168e564 + cc202b9 commit a6d336b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/omemo/QXmppOmemoManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,6 @@ QXmppTask<bool> Manager::load()
return;
} else {
d->signedPreKeyPairs = signedPreKeyPairs;
d->renewSignedPreKeyPairs();
}

const auto &preKeyPairs = omemoData.preKeyPairs;
Expand Down
2 changes: 1 addition & 1 deletion src/omemo/QXmppOmemoManager_p.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -723,8 +723,8 @@ void ManagerPrivate::renewSignedPreKeyPairs()
// Remove signed pre key pairs older than
// SIGNED_PRE_KEY_RENEWAL_INTERVAL.
if (currentDate - creationDate > SIGNED_PRE_KEY_RENEWAL_INTERVAL) {
itr = signedPreKeyPairs.erase(itr);
omemoStorage->removeSignedPreKeyPair(itr.key());
itr = signedPreKeyPairs.erase(itr);
isSignedPreKeyPairRemoved = true;
} else {
++itr;
Expand Down

0 comments on commit a6d336b

Please sign in to comment.