diff options
author | Joas Schilling <coding@schilljs.com> | 2021-12-14 19:34:27 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-12-15 16:19:22 +0300 |
commit | ab0c61a14358a25d94bacfc0a3fbbb477f4fb85e (patch) | |
tree | a41f16d939244e13218a08b21a537ab2b64787b5 | |
parent | 802d1d2f3e4af3e1a590fca7b6dc24c4115f30a4 (diff) |
Make it explicit when the participant list changed
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | lib/Room.php | 6 | ||||
-rw-r--r-- | tests/php/Signaling/BackendNotifierTest.php | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/lib/Room.php b/lib/Room.php index f3f03880a..647462b40 100644 --- a/lib/Room.php +++ b/lib/Room.php @@ -434,9 +434,9 @@ class Room { ]; if ($roomModified) { - $properties = array_merge($properties, [ - 'description' => $this->getDescription(), - ]); + $properties['description'] = $this->getDescription(); + } else { + $properties['participant-list'] = 'refresh'; } $event = new SignalingRoomPropertiesEvent($this, $userId, $properties); diff --git a/tests/php/Signaling/BackendNotifierTest.php b/tests/php/Signaling/BackendNotifierTest.php index 062adaace..c90b00dbc 100644 --- a/tests/php/Signaling/BackendNotifierTest.php +++ b/tests/php/Signaling/BackendNotifierTest.php @@ -309,6 +309,7 @@ class BackendNotifierTest extends \Test\TestCase { 'listable' => Room::LISTABLE_NONE, 'active-since' => null, 'sip-enabled' => 0, + 'participant-list' => 'refresh', ], ], ]); @@ -362,6 +363,7 @@ class BackendNotifierTest extends \Test\TestCase { 'listable' => Room::LISTABLE_NONE, 'active-since' => null, 'sip-enabled' => 0, + 'participant-list' => 'refresh', ], ], ]); @@ -390,6 +392,7 @@ class BackendNotifierTest extends \Test\TestCase { 'listable' => Room::LISTABLE_NONE, 'active-since' => null, 'sip-enabled' => 0, + 'participant-list' => 'refresh', ], ], ]); |