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 e930e8c commit 0bcf4d6Copy full SHA for 0bcf4d6
1 file changed
src/helpers/BaseChatMesh.cpp
@@ -969,6 +969,10 @@ bool BaseChatMesh::removeContact(ContactInfo& contact) {
969
970
removeSessionKey(contact.id.pub_key); // also remove session key if any
971
972
+ // adjust pending rekey index before shifting array
973
+ if (_pending_rekey_idx == idx) _pending_rekey_idx = -1;
974
+ else if (_pending_rekey_idx > idx) _pending_rekey_idx--;
975
+
976
// remove from contacts array and parallel nonce tracking
977
num_contacts--;
978
while (idx < num_contacts) {
0 commit comments