updated presence model

This commit is contained in:
ArnabChatterjee20k
2026-05-13 12:38:47 +05:30
parent 4e2bd9c307
commit a1f321d92e
2 changed files with 2 additions and 6 deletions
@@ -102,6 +102,7 @@ class Presence extends Action
$presence->removeAttribute('$tenant');
$presence->removeAttribute('hostname');
$presence->removeAttribute('perms_md5');
$presence->removeAttribute('userInternalId');
$realtime->connections[$connectionId]['presences'][$presence->getId()] = $presence;
@@ -55,12 +55,6 @@ class Presence extends Any
'example' => ['read("any")'],
'array' => true,
])
->addRule('userInternalId', [
'type' => self::TYPE_STRING,
'description' => 'User internal ID.',
'default' => '',
'example' => '1',
])
->addRule('userId', [
'type' => self::TYPE_STRING,
'description' => 'User ID.',
@@ -97,6 +91,7 @@ class Presence extends Any
$document->removeAttribute('$tenant');
$document->removeAttribute('hostname');
$document->removeAttribute('perms_md5');
$document->removeAttribute('userInternalId');
if (!$document->isEmpty()) {
$document->setAttribute('$sequence', (string) $document->getAttribute('$sequence', ''));