summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVitor Mattos <vitor@php.rio>2023-01-18 18:26:33 -0300
committerVitor Mattos <vitor@php.rio>2023-01-18 18:26:33 -0300
commite529b71aa08c77d1e17ff021dbb33f9de4375746 (patch)
tree0709b018e3e8de3585247383f467cf397f82b60a /lib
parentb71fc1d3d9c99502db1e9b514c4d219592cccae3 (diff)
Fix share id
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'lib')
-rw-r--r--lib/Service/RecordingService.php4
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()),