Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Send ALL membership events, including bans to the server that was banned #1758

Merged
merged 2 commits into from Jan 4, 2017

Conversation

NegativeMjark
Copy link
Contributor

No description provided.

Send all membership changes to the server that was affected.
This ensures that if the last member of a room on a server
was kicked or banned they get told about it.
@@ -161,9 +161,11 @@ def notify_new_events(self, current_id):
get_domain_from_id(user_id) for user_id in users_in_room
)

# Send all membership changes to the server that was affected.
# This ensures that if the last member of a room on a server
# was kicked or banned they get told about it.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still wish we knew why Membership.JOIN had been special-cased previously :/

Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@richvdh richvdh assigned NegativeMjark and unassigned richvdh Jan 4, 2017
Rather than the state after then event.
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uhhh... still lgtm, I guess?

@NegativeMjark
Copy link
Contributor Author

I've removed the

if event.type == EventTypes.Member:
      if event.content["membership"] == Membership.JOIN:
             destinations.add(get_domain_from_id(event.state_key))

because it would only have been used to send a join event to a server that joined, and that server already has event because it created it. (all join events are created by the server that is joining the room.)

@NegativeMjark NegativeMjark merged commit 0d766c8 into release-v0.18.6 Jan 4, 2017
@hawkowl hawkowl deleted the markjh/fix_ban_propagation branch September 20, 2018 13:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants