mirror of
https://github.com/liquidraver/ZephCore.git
synced 2026-10-22 18:41:20 +00:00
fix MAX_ANON_CONTACTS
This commit is contained in:
1 parent
01fd56a573
commit
37edf303a2
1 file changed
+2
-1
@@ -84,7 +84,8 @@ void BaseChatMesh::bootstrapRTCfromContacts()
|
||||
|
||||
ContactInfo *BaseChatMesh::allocateContactSlot(bool transient_only)
|
||||
{
|
||||
if (num_contacts < MAX_CONTACTS) {
|
||||
int max_slots = transient_only ? (MAX_CONTACTS + MAX_ANON_CONTACTS) : MAX_CONTACTS;
|
||||
if (num_contacts < max_slots) {
|
||||
return &contacts[num_contacts++];
|
||||
} else if (transient_only || shouldOverwriteWhenFull()) {
|
||||
int oldest_idx = -1;
|
||||
|
||||
Reference in new issue
Block a user