diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Notification/Notifier.php | 8 | ||||
-rw-r--r-- | lib/Service/RecordingService.php | 1 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php index b99db6f8b..0ba311a19 100644 --- a/lib/Notification/Notifier.php +++ b/lib/Notification/Notifier.php @@ -312,6 +312,12 @@ class Notifier implements INotifier { 'ocs.spreed.Chat.shareObjectToChat', [ 'apiVersion' => 'v1', + 'objectType' => 'file', + 'objectId' => $notification->getObjectId(), + 'metaData' => json_encode([ + 'name' => $parameters['name'], + 'path' => $parameters['name'], + ]), 'token' => $room->getToken() ] ), @@ -337,7 +343,7 @@ class Notifier implements INotifier { 'call' => [ 'type' => 'call', 'id' => $room->getId(), - 'name' => $room->getDisplayName((string) $participant->getAttendee()->getActorId()), + 'name' => $room->getDisplayName($participant->getAttendee()->getActorId()), 'call-type' => $this->getRoomType($room), ], ]) diff --git a/lib/Service/RecordingService.php b/lib/Service/RecordingService.php index a20143d9d..ab013d897 100644 --- a/lib/Service/RecordingService.php +++ b/lib/Service/RecordingService.php @@ -167,6 +167,7 @@ class RecordingService { ->setSubject('record_file_stored', [ 'objectType' => 'file', 'objectId' => $file->getId(), + 'name' => $file->getName(), 'actorDisplayName' => $attendee->getDisplayName(), ]); $this->notificationManager->notify($notification); |