* fix for counter in RESP_CODE_CONTACTS_START

This commit is contained in:
Scott Powell committed 2026-06-14 18:39:34 +10:00
1 parent c2d223ff55
commit 538ac38e18
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -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;