1
0

Also notify of join events via another path

This commit is contained in:
David Robertson
2022-07-11 21:02:57 +01:00
parent 47acf465ef
commit fda6252233

View File

@@ -2063,6 +2063,10 @@ class FederationEventHandler:
event, event_pos, max_stream_token, extra_users=extra_users
)
if event.type == EventTypes.Member and event.membership == Membership.JOIN:
# TODO retrieve the previous state, and exclude join -> join transitions
self._notifier.notify_user_joined_room(event.event_id, event.room_id)
def _sanity_check_event(self, ev: EventBase) -> None:
"""
Do some early sanity checks of a received event