Send all membership events to the remote homeserver
This commit is contained in:
parent
ea8590cf66
commit
758d114cbc
|
@ -133,10 +133,9 @@ class BaseHandler(object):
|
||||||
for k, s in context.current_state.items():
|
for k, s in context.current_state.items():
|
||||||
try:
|
try:
|
||||||
if k[0] == EventTypes.Member:
|
if k[0] == EventTypes.Member:
|
||||||
if s.content["membership"] == Membership.JOIN:
|
destinations.add(
|
||||||
destinations.add(
|
UserID.from_string(s.state_key).domain
|
||||||
UserID.from_string(s.state_key).domain
|
)
|
||||||
)
|
|
||||||
except SynapseError:
|
except SynapseError:
|
||||||
logger.warn(
|
logger.warn(
|
||||||
"Failed to get destination from event %s", s.event_id
|
"Failed to get destination from event %s", s.event_id
|
||||||
|
|
Loading…
Reference in New Issue