mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 15:30:21 +00:00
move it again
This commit is contained in:
parent
ea0489ba13
commit
fa8e029bfc
1 changed files with 9 additions and 7 deletions
|
@ -149,14 +149,16 @@ class ApplicationServiceScheduler:
|
||||||
):
|
):
|
||||||
return
|
return
|
||||||
|
|
||||||
# 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)]
|
|
||||||
|
|
||||||
if events:
|
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)
|
self.queuer.queued_events.setdefault(appservice.id, []).extend(events)
|
||||||
if ephemeral:
|
if ephemeral:
|
||||||
self.queuer.queued_ephemeral.setdefault(appservice.id, []).extend(ephemeral)
|
self.queuer.queued_ephemeral.setdefault(appservice.id, []).extend(ephemeral)
|
||||||
|
|
Loading…
Reference in a new issue