summaryrefslogtreecommitdiffstats
path: root/lib/Notification/Notifier.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-10-24 17:44:39 +0200
committerJoas Schilling <coding@schilljs.com>2023-10-30 17:27:05 +0100
commitfc8734a59350e58d840b112b9948bb44c6afdacc (patch)
tree83e777d902f6357c4a496ca24a98b86d4c994c54 /lib/Notification/Notifier.php
parentec8eb42fe3ef5d0f0247a3fd078099e49d0140c3 (diff)
fix(federation): Make invitations force unique based on remote server and attendee id
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Notification/Notifier.php')
-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 fbc927aef..bd4b8e319 100644
--- a/lib/Notification/Notifier.php
+++ b/lib/Notification/Notifier.php
@@ -403,8 +403,8 @@ class Notifier implements INotifier {
if ($invite->getUserId() !== $notification->getUser()) {
throw new AlreadyProcessedException();
}
- $room = $this->manager->getRoomById($invite->getRoomId());
- } catch (RoomNotFoundException $e) {
+ $room = $this->manager->getRoomById($invite->getLocalRoomId());
+ } catch (RoomNotFoundException) {
// Room does not exist
throw new AlreadyProcessedException();
}