diff options
author | Vitor Mattos <vitor@php.rio> | 2023-01-18 18:26:33 -0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2023-01-18 18:26:33 -0300 |
commit | e529b71aa08c77d1e17ff021dbb33f9de4375746 (patch) | |
tree | 0709b018e3e8de3585247383f467cf397f82b60a | |
parent | b71fc1d3d9c99502db1e9b514c4d219592cccae3 (diff) |
Fix share id
Signed-off-by: Vitor Mattos <vitor@php.rio>
-rw-r--r-- | lib/Service/RecordingService.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Service/RecordingService.php b/lib/Service/RecordingService.php index e74508cc3..e3f01bbfc 100644 --- a/lib/Service/RecordingService.php +++ b/lib/Service/RecordingService.php @@ -218,12 +218,12 @@ class RecordingService { ->setSharedWith($room->getToken()) ->setPermissions(\OCP\Constants::PERMISSION_READ); - $this->shareManager->createShare($share); + $share = $this->shareManager->createShare($share); $message = json_encode([ 'message' => 'file_shared', 'parameters' => [ - 'share' => (string) $file->getId(), + 'share' => $share->getId(), 'metaData' => [ 'mimeType' => $file->getMimeType(), 'messageType' => $this->getTypeOfShare($file->getMimeType()), |