summary refs log tree commit diff
diff options
context:
space:
mode:
authorEric Eastwood <erice@element.io>2022-12-24 02:44:39 -0600
committerEric Eastwood <erice@element.io>2022-12-24 02:44:39 -0600
commit13f6c6d115f6ff7e4210b316205d2beb9b485eae (patch)
tree351f3b186373546db2fc09d07e2921da2eb8d44f
parentmove it again (diff)
downloadsynapse-github/madlittlemods/gitter-patch-ignore-our-own-events.tar.xz
-rw-r--r--synapse/appservice/scheduler.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/appservice/scheduler.py b/synapse/appservice/scheduler.py
index d90d45b643..ac8684407b 100644
--- a/synapse/appservice/scheduler.py
+++ b/synapse/appservice/scheduler.py
@@ -159,6 +159,7 @@ class ApplicationServiceScheduler:
                 event for event in events if not self._hs.is_mine_id(event.sender)
             ]
 
+        if events:
             self.queuer.queued_events.setdefault(appservice.id, []).extend(events)
         if ephemeral:
             self.queuer.queued_ephemeral.setdefault(appservice.id, []).extend(ephemeral)