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:
authorJoas Schilling <coding@schilljs.com>2021-03-05 14:37:12 +0300
committerJoas Schilling <coding@schilljs.com>2021-03-08 13:56:21 +0300
commit928e047de2dca944ba2d1747bd1e3a83e57e746c (patch)
treeb5d23aa1d49e78f51a983836448223643d98c4b7 /lib/Notification
parent1dd9297864a925f36db88bd3bfd59af41a1e2f3d (diff)
Handle all getParticipants with multi sessions
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Notification')
-rw-r--r--lib/Notification/Notifier.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php
index c88416228..eeb657bdf 100644
--- a/lib/Notification/Notifier.php
+++ b/lib/Notification/Notifier.php
@@ -185,7 +185,7 @@ class Notifier implements INotifier {
}
try {
- $participant = $room->getParticipant($userId);
+ $participant = $room->getParticipant($userId, false);
$this->participants[$roomId][$userId] = $participant;
return $participant;
} catch (ParticipantNotFoundException $e) {
@@ -441,7 +441,7 @@ class Notifier implements INotifier {
* @throws ParticipantNotFoundException
*/
protected function getGuestParameter(Room $room, string $actorId): array {
- $participant = $room->getParticipantByActor(Attendee::ACTOR_GUESTS, $actorId);
+ $participant = $room->getParticipantByActor(Attendee::ACTOR_GUESTS, $actorId, false);
$name = $participant->getAttendee()->getDisplayName();
if (trim($name) === '') {
throw new ParticipantNotFoundException('Empty name');