Wessel Nieboer
5 months ago
No known key found for this signature in database
GPG Key ID: 929C8E45E33B5FD2
1 changed files with
4 additions and
0 deletions
-
src/helpers/BaseChatMesh.cpp
|
|
|
@ -993,6 +993,10 @@ bool BaseChatMesh::removeContact(ContactInfo& contact) { |
|
|
|
|
|
|
|
removeSessionKey(contact.id.pub_key); // also remove session key if any
|
|
|
|
|
|
|
|
// adjust pending rekey index before shifting array
|
|
|
|
if (_pending_rekey_idx == idx) _pending_rekey_idx = -1; |
|
|
|
else if (_pending_rekey_idx > idx) _pending_rekey_idx--; |
|
|
|
|
|
|
|
// remove from contacts array and parallel nonce tracking
|
|
|
|
num_contacts--; |
|
|
|
while (idx < num_contacts) { |
|
|
|
|