mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-09-15 23:56:38 +00:00
* fix for counter in RESP_CODE_CONTACTS_START
This commit is contained in:
@@ -946,7 +946,7 @@ ContactsIterator BaseChatMesh::startContactsIterator() {
|
||||
}
|
||||
|
||||
bool ContactsIterator::hasNext(const BaseChatMesh* mesh, ContactInfo& dest) {
|
||||
if (next_idx >= mesh->getNumContacts()) return false;
|
||||
if (next_idx >= mesh->getTotalContactSlots()) return false;
|
||||
|
||||
dest = mesh->contacts[next_idx++];
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user