mirror of
https://github.com/liquidraver/ZephCore.git
synced 2026-09-09 10:25:36 +00:00
fix MAX_ANON_CONTACTS
This commit is contained in:
@@ -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