Clarify profile updates sync response with a comment

This commit is contained in:
Jason Robinson
2026-06-01 16:01:30 +03:00
parent 54c299d091
commit 3cf7555f84
+2
View File
@@ -242,6 +242,7 @@ class SyncResult:
next_batch: StreamToken
presence: list[UserPresenceState]
account_data: list[JsonDict]
# user ID -> {profile field -> value | null if unset }
profile_updates: dict[str, dict[str, JsonValue | None]]
joined: list[JoinedSyncResult]
invited: list[InvitedSyncResult]
@@ -2239,6 +2240,7 @@ class SyncHandler:
)
# Serialise the profile updates into the sync response format.
# user ID -> {profile field -> value | null if unset }
profile_updates: dict[str, dict[str, JsonValue | None]] = {}
for other_user_id, fields in user_fields.items():
profile_data = profile_data_by_user.get(other_user_id)