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 faa9650 commit 81bad32Copy full SHA for 81bad32
1 file changed
src/helpers/BaseChatMesh.cpp
@@ -902,6 +902,10 @@ bool BaseChatMesh::removeContact(ContactInfo& contact) {
902
903
removeSessionKey(contact.id.pub_key); // also remove session key if any
904
905
+ // adjust pending rekey index before shifting array
906
+ if (_pending_rekey_idx == idx) _pending_rekey_idx = -1;
907
+ else if (_pending_rekey_idx > idx) _pending_rekey_idx--;
908
+
909
// remove from contacts array and parallel nonce tracking
910
num_contacts--;
911
while (idx < num_contacts) {
0 commit comments