Compare commits

...

7 Commits

Author SHA1 Message Date
Eric Eastwood
89422ac9ff move it again 2022-12-24 10:43:14 +02:00
Eric Eastwood
eaf8bab089 Move to after we know not None 2022-12-24 10:43:14 +02:00
Eric Eastwood
eb2ac3f4cc Add more/better comments 2022-12-24 10:43:14 +02:00
Eric Eastwood
9bfeb92a53 Correct filtering 2022-12-24 10:43:14 +02:00
Eric Eastwood
687156625a Add dummy changelog 2022-12-24 10:43:14 +02:00
Eric Eastwood
22f3f54eb3 Ignore events from ourself 2022-12-24 10:43:14 +02:00
Jason Robinson
1a4bc25c59 Use Python 3.11 in Dockerfile 2022-12-22 13:17:05 +02:00
3 changed files with 12 additions and 1 deletions

1
changelog.d/14729.misc Normal file
View File

@@ -0,0 +1 @@
Don't merge this.

View File

@@ -26,7 +26,7 @@
ARG PYTHON_VERSION=3.9
ARG PYTHON_VERSION=3.11
###
### Stage 0: generate requirements.txt

View File

@@ -98,6 +98,7 @@ class ApplicationServiceScheduler:
"""
def __init__(self, hs: "HomeServer"):
self._hs = hs
self.clock = hs.get_clock()
self.store = hs.get_datastores().main
self.as_api = hs.get_application_service_api()
@@ -149,6 +150,15 @@ class ApplicationServiceScheduler:
return
if events:
# XXX: Special patch just for Gitter which we should remove after the import,
# https://github.com/matrix-org/synapse/pull/14729
#
# Ignore events that come from our own users. We probably already know about
# them and sent them ourself.
events = [
event for event in events if not self._hs.is_mine_id(event.sender)
]
self.queuer.queued_events.setdefault(appservice.id, []).extend(events)
if ephemeral:
self.queuer.queued_ephemeral.setdefault(appservice.id, []).extend(ephemeral)