We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 517ccef commit 04924b8Copy full SHA for 04924b8
1 file changed
src/helpers/BaseChatMesh.cpp
@@ -973,6 +973,10 @@ bool BaseChatMesh::removeContact(ContactInfo& contact) {
973
974
removeSessionKey(contact.id.pub_key); // also remove session key if any
975
976
+ // adjust pending rekey index before shifting array
977
+ if (_pending_rekey_idx == idx) _pending_rekey_idx = -1;
978
+ else if (_pending_rekey_idx > idx) _pending_rekey_idx--;
979
+
980
// remove from contacts array and parallel nonce tracking
981
num_contacts--;
982
while (idx < num_contacts) {
0 commit comments