mirror of
https://github.com/element-hq/synapse
synced 2024-08-19 02:10:55 +00:00
Send all membership events to the remote homeserver
This commit is contained in:
parent
ea8590cf66
commit
758d114cbc
1 changed files with 3 additions and 4 deletions
|
@ -133,10 +133,9 @@ class BaseHandler(object):
|
|||
for k, s in context.current_state.items():
|
||||
try:
|
||||
if k[0] == EventTypes.Member:
|
||||
if s.content["membership"] == Membership.JOIN:
|
||||
destinations.add(
|
||||
UserID.from_string(s.state_key).domain
|
||||
)
|
||||
destinations.add(
|
||||
UserID.from_string(s.state_key).domain
|
||||
)
|
||||
except SynapseError:
|
||||
logger.warn(
|
||||
"Failed to get destination from event %s", s.event_id
|
||||
|
|
Loading…
Reference in a new issue