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 7161eeb commit a8cfbc4Copy full SHA for a8cfbc4
1 file changed
src/helpers/BaseChatMesh.cpp
@@ -981,6 +981,10 @@ bool BaseChatMesh::removeContact(ContactInfo& contact) {
981
982
removeSessionKey(contact.id.pub_key); // also remove session key if any
983
984
+ // adjust pending rekey index before shifting array
985
+ if (_pending_rekey_idx == idx) _pending_rekey_idx = -1;
986
+ else if (_pending_rekey_idx > idx) _pending_rekey_idx--;
987
+
988
// remove from contacts array and parallel nonce tracking
989
num_contacts--;
990
while (idx < num_contacts) {
0 commit comments