Skip to content

Commit

Permalink
Merge branch '1.6' into 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
lnjX committed Jan 14, 2025
2 parents ce9b3c3 + 4c5bb51 commit a31dd31
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 @@ -373,7 +373,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 @@ -722,8 +722,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 a31dd31

Please sign in to comment.