diff options
author | Joas Schilling <coding@schilljs.com> | 2021-03-05 14:37:12 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-03-08 13:56:21 +0300 |
commit | 928e047de2dca944ba2d1747bd1e3a83e57e746c (patch) | |
tree | b5d23aa1d49e78f51a983836448223643d98c4b7 /lib/Notification | |
parent | 1dd9297864a925f36db88bd3bfd59af41a1e2f3d (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.php | 4 |
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'); |