Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2019-08-26 15:21:52 +0300
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2019-08-28 11:28:03 +0300
commit8524f184f1a56cb249427e285ede12f5422561ff (patch)
treed9a004e56cda753904f9980b9ea2d57c1cc95db4 /lib
parenta48650c908e0737007a21a5f08a9ddc6f707c2da (diff)
Send notification to signaling backend when lobby state changes
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Signaling/Listener.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/Signaling/Listener.php b/lib/Signaling/Listener.php
index 7bc25e29b..636644b95 100644
--- a/lib/Signaling/Listener.php
+++ b/lib/Signaling/Listener.php
@@ -163,6 +163,17 @@ class Listener {
$room = $event->getSubject();
$notifier->roomModified($room);
});
+ $dispatcher->addListener(Room::class . '::postSetLobbyState', function(GenericEvent $event) {
+ if (self::isUsingInternalSignaling()) {
+ return;
+ }
+
+ /** @var BackendNotifier $notifier */
+ $notifier = \OC::$server->query(BackendNotifier::class);
+
+ $room = $event->getSubject();
+ $notifier->roomModified($room);
+ });
$dispatcher->addListener(Room::class . '::postSetParticipantType', function(GenericEvent $event) {
if (self::isUsingInternalSignaling()) {
return;