summaryrefslogtreecommitdiffstats
path: root/lib/Notification
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-01-29 12:44:10 +0100
committerJoas Schilling <coding@schilljs.com>2024-01-29 12:58:22 +0100
commit386c67fa745b42e901aa4adb182ebdf4c5a322a7 (patch)
treee3a0c2215682605c5de2ae729fdacd3a1f24537f /lib/Notification
parentb3bdf65e40d44dc6548ade11bc18fa1d6b0186e5 (diff)
fix(notification): Make sure pending invite notifications are removed correctly
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Notification')
-rw-r--r--lib/Notification/Notifier.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php
index 4b825f1f7..bdfc67679 100644
--- a/lib/Notification/Notifier.php
+++ b/lib/Notification/Notifier.php
@@ -405,6 +405,9 @@ class Notifier implements INotifier {
throw new AlreadyProcessedException();
}
$room = $this->manager->getRoomById($invite->getLocalRoomId());
+ } catch (DoesNotExistException) {
+ // Invitation does not exist
+ throw new AlreadyProcessedException();
} catch (RoomNotFoundException) {
// Room does not exist
throw new AlreadyProcessedException();