diff options
author | Vitor Mattos <vitor@php.rio> | 2023-01-17 15:17:45 -0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2023-01-17 15:17:45 -0300 |
commit | 13eff2db46dc4312811795750ca2393a63d49cb0 (patch) | |
tree | 9eca7cf35680caa367425065dd64941600576bf1 /lib | |
parent | 2895a929af1f8ab463249a914f1720d69a2ab0ae (diff) |
Fix share file to room
Signed-off-by: Vitor Mattos <vitor@php.rio>
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); |