Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Kim <gary@garykim.dev>2021-08-16 00:09:58 +0300
committerGary Kim <gary@garykim.dev>2021-09-20 21:30:29 +0300
commit9f3695d748d163f2de5ea5ef394b8d7a0caf7a6a (patch)
tree955de07443761f76ccb100fcf1fc5836820a4a04 /lib/Service
parent886a7753d4424b22e00521a525b8b7d5035b7a30 (diff)
Set share owner properly
Signed-off-by: Gary Kim <gary@garykim.dev>
Diffstat (limited to 'lib/Service')
-rw-r--r--lib/Service/ParticipantService.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Service/ParticipantService.php b/lib/Service/ParticipantService.php
index 02046563e..a4d9a0535 100644
--- a/lib/Service/ParticipantService.php
+++ b/lib/Service/ParticipantService.php
@@ -310,7 +310,7 @@ class ParticipantService {
/**
* @param Room $room
* @param array $participants
- * @param IUser|null $addedBy
+ * @param IUser|null $addedBy User that is attempting to add these users (must be set for federated users to be added)
*/
public function addUsers(Room $room, array $participants, ?IUser $addedBy = null): void {
if (empty($participants)) {
@@ -378,7 +378,7 @@ class ParticipantService {
}
private function sendRemoteShare(Room $room, IUser $addedBy, string $addingUserId, string $token, int $attendeeId) {
- $this->notifications->sendRemoteShare((string) $attendeeId, $token, $addingUserId, $room->getToken(), $addedBy->getDisplayName(), $addedBy->getCloudId(), $addedBy->getDisplayName(), $addedBy->getCloudId(), 'user', $room->getName(), (string) $room->getType());
+ $this->notifications->sendRemoteShare((string) $attendeeId, $token, $addingUserId, $addedBy->getDisplayName(), $addedBy->getCloudId(), 'user', $room);
}
/**