mirror of
https://github.com/element-hq/synapse.git
synced 2026-07-30 05:20:31 +00:00
Apply suggestions from code review
Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Andrew Morgan
Copilot Autofix powered by AI
parent
30c5602cc4
commit
c16dbe7dbc
@@ -426,7 +426,7 @@ class ProfileUpdateAction(str, enum.Enum):
|
||||
we always include the full profile of users who have joined a room the syncing
|
||||
user is a member of, where full profile means all the current profile values the
|
||||
client asked for, regardless of whether they have changed recently. This ensures
|
||||
that clients have profile re-populated for any users who have recently left
|
||||
that clients have profiles re-populated for any users who have recently left
|
||||
shared rooms.
|
||||
|
||||
A scenario example would be as follows:
|
||||
|
||||
@@ -655,7 +655,7 @@ class ProfileHandler:
|
||||
field_name: str,
|
||||
new_value: JsonValue | dict[str, JsonValue],
|
||||
by_admin: bool = False,
|
||||
propagate: bool = False,
|
||||
propagate: bool = True,
|
||||
) -> None:
|
||||
"""
|
||||
Dispatch setting a profile field value. This either happens in the same
|
||||
|
||||
Reference in New Issue
Block a user