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 a0780da commit 4dac1e5Copy full SHA for 4dac1e5
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