summary refs log tree commit diff
path: root/synapse/notifier.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/notifier.py')
-rw-r--r--synapse/notifier.py28
1 files changed, 11 insertions, 17 deletions
diff --git a/synapse/notifier.py b/synapse/notifier.py
index eb316ae419..3b24a7f4ba 100644
--- a/synapse/notifier.py
+++ b/synapse/notifier.py
@@ -444,23 +444,17 @@ class Notifier:
 
             self.notify_replication()
 
-            # Notify appservices of updates in ephemeral event streams.
-            # Only the following streams are currently supported.
-            if stream_key in (
-                "typing_key",
-                "receipt_key",
-                "presence_key",
-                "to_device_key",
-            ):
-                # Notify appservices.
-                try:
-                    self.appservice_handler.notify_interested_services_ephemeral(
-                        stream_key,
-                        new_token,
-                        users,
-                    )
-                except Exception:
-                    logger.exception("Error notifying application services of event")
+            # Notify appservices.
+            try:
+                self.appservice_handler.notify_interested_services_ephemeral(
+                    stream_key,
+                    new_token,
+                    users,
+                )
+            except Exception:
+                logger.exception(
+                    "Error notifying application services of ephemeral event"
+                )
 
     def on_new_replication_data(self) -> None:
         """Used to inform replication listeners that something has happened