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 c06a8a5 commit b8147e8Copy full SHA for b8147e8
1 file changed
src/helpers/BaseChatMesh.cpp
@@ -911,6 +911,10 @@ bool BaseChatMesh::removeContact(ContactInfo& contact) {
911
912
removeSessionKey(contact.id.pub_key); // also remove session key if any
913
914
+ // adjust pending rekey index before shifting array
915
+ if (_pending_rekey_idx == idx) _pending_rekey_idx = -1;
916
+ else if (_pending_rekey_idx > idx) _pending_rekey_idx--;
917
+
918
// remove from contacts array and parallel nonce tracking
919
num_contacts--;
920
while (idx < num_contacts) {
0 commit comments