Skip to content

Commit

Permalink
Better clarify $ME translation
Browse files Browse the repository at this point in the history
  • Loading branch information
MadLittleMods committed Oct 9, 2024
1 parent 760810f commit ddc9769
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions synapse/handlers/sliding_sync/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1439,8 +1439,9 @@ def _required_state_changes(
# No change.
continue

# Handle "$ME" values by adding "$ME" if the state key matches the user
# ID.
# If we see the `user_id`` as a state_key, also add "$ME" to the list of state
# that has changed to account for people requesting `required_state` with `$ME`
# or their user ID.
if user_id in changed_state_keys:
changed_state_keys.add(StateValues.ME)

Expand Down

0 comments on commit ddc9769

Please sign in to comment.