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:
authorJoas Schilling <coding@schilljs.com>2020-05-15 16:08:03 +0300
committerJoas Schilling <coding@schilljs.com>2020-07-01 11:00:23 +0300
commitd5c42d818c5d016066864e64787f78d4f1bfca42 (patch)
tree34a14e862c6bc993fcb0b89abd21c8d33fe5b11d /lib
parent5e6a21bd984227db9abb11ae059c7badb91593b6 (diff)
Return session id, in call flag and last ping
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/RoomController.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/Controller/RoomController.php b/lib/Controller/RoomController.php
index e09a54c25..688a0cfef 100644
--- a/lib/Controller/RoomController.php
+++ b/lib/Controller/RoomController.php
@@ -1174,7 +1174,11 @@ class RoomController extends AEnvironmentAwareController {
try {
$participant = $room->getParticipant($this->userId);
if ($participant->getSessionId() !== '0') {
- return new DataResponse([], Http::STATUS_CONFLICT);
+ return new DataResponse([
+ 'sessionId' => $participant->getSessionId(),
+ 'inCall' => $participant->getInCallFlags(),
+ 'lastPing' => $participant->getLastPing(),
+ ], Http::STATUS_CONFLICT);
}
} catch (ParticipantNotFoundException $e) {
// All fine, carry on
@@ -1184,7 +1188,11 @@ class RoomController extends AEnvironmentAwareController {
try {
$participant = $room->getParticipantBySession($session);
if ($participant->getSessionId() !== '0') {
- return new DataResponse([], Http::STATUS_CONFLICT);
+ return new DataResponse([
+ 'sessionId' => $participant->getSessionId(),
+ 'inCall' => $participant->getInCallFlags(),
+ 'lastPing' => $participant->getLastPing(),
+ ], Http::STATUS_CONFLICT);
}
} catch (ParticipantNotFoundException $e) {
// All fine, carry on