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

Commit

Permalink
Merge branch 'develop' of github.com:matrix-org/synapse into erikj/bu…
Browse files Browse the repository at this point in the history
…lk_push
  • Loading branch information
erikjohnston committed Sep 5, 2016
2 parents caed150 + 274c2f5 commit d87b87a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions synapse/handlers/room_member.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ def _local_membership_update(
prev_event_ids=prev_event_ids,
)

# Check if this event matches the previous membership event for the user.
duplicate = yield msg_handler.deduplicate_state_event(event, context)
if duplicate is not None:
# Discard the new event since this membership change is a no-op.
return

yield msg_handler.handle_new_client_event(
requester,
event,
Expand Down

0 comments on commit d87b87a

Please sign in to comment.