diff options
author | Joas Schilling <coding@schilljs.com> | 2022-11-18 12:32:57 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-11-18 12:32:57 +0100 |
commit | 7c7cfedf83a0f36acb5cb0aec87b4dd80dd06d48 (patch) | |
tree | 1d6dec22e3e8687915fb71276bcad661b7d006de /lib/Controller/RoomController.php | |
parent | 94544748b1b8d4adeb5f1c07ec11e86ab6fa35d6 (diff) |
Add callStartTime to room API
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Controller/RoomController.php')
-rw-r--r-- | lib/Controller/RoomController.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Controller/RoomController.php b/lib/Controller/RoomController.php index 6a1f4d234..46a177f81 100644 --- a/lib/Controller/RoomController.php +++ b/lib/Controller/RoomController.php @@ -381,6 +381,7 @@ class RoomController extends AEnvironmentAwareController { 'readOnly' => Room::READ_WRITE, 'hasPassword' => $room->hasPassword(), 'hasCall' => false, + 'callStartTime' => 0, 'canStartCall' => false, 'lastActivity' => 0, 'lastReadMessage' => 0, @@ -462,6 +463,7 @@ class RoomController extends AEnvironmentAwareController { 'participantType' => $attendee->getParticipantType(), 'readOnly' => $room->getReadOnly(), 'hasCall' => $room->getActiveSince() instanceof \DateTimeInterface, + 'callStartTime' => $room->getActiveSince() instanceof \DateTimeInterface ? $room->getActiveSince()->getTimestamp() : 0, 'lastActivity' => $lastActivity, 'callFlag' => $room->getCallFlag(), 'isFavorite' => $attendee->isFavorite(), |