Browse Source

Make it explicit when the participant list changed

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/6707/head
Joas Schilling 4 years ago
parent
commit
ab0c61a143
No known key found for this signature in database GPG Key ID: 7076EA9751AACDDA
  1. 6
      lib/Room.php
  2. 3
      tests/php/Signaling/BackendNotifierTest.php

6
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);

3
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',
],
],
]);

Loading…
Cancel
Save