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 c1deffa commit 545169eCopy full SHA for 545169e
1 file changed
src/helpers/BaseChatMesh.cpp
@@ -993,6 +993,10 @@ bool BaseChatMesh::removeContact(ContactInfo& contact) {
993
994
removeSessionKey(contact.id.pub_key); // also remove session key if any
995
996
+ // adjust pending rekey index before shifting array
997
+ if (_pending_rekey_idx == idx) _pending_rekey_idx = -1;
998
+ else if (_pending_rekey_idx > idx) _pending_rekey_idx--;
999
+
1000
// remove from contacts array and parallel nonce tracking
1001
num_contacts--;
1002
while (idx < num_contacts) {
0 commit comments