mirror of
https://github.com/element-hq/synapse.git
synced 2026-06-03 19:11:21 +00:00
user_id: UserID in ProfileUpdatesStreamRow
Also add docstrings for the fields.
This commit is contained in:
@@ -33,6 +33,7 @@ import attr
|
||||
|
||||
from synapse.api.constants import AccountDataTypes
|
||||
from synapse.replication.http.streams import ReplicationGetStreamUpdates
|
||||
from synapse.types import UserID
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from synapse.server import HomeServer
|
||||
@@ -769,8 +770,10 @@ class ThreadSubscriptionsStream(_StreamFromIdGen):
|
||||
class ProfileUpdatesStreamRow:
|
||||
"""Stream to inform workers about profile updates."""
|
||||
|
||||
user_id: str
|
||||
user_id: UserID
|
||||
"""The full user ID with the profile update."""
|
||||
field_name: str
|
||||
"""The profile field that was updated, see https://spec.matrix.org/unstable/client-server-api/#profiles """
|
||||
|
||||
|
||||
class ProfileUpdatesStream(_StreamFromIdGen):
|
||||
|
||||
Reference in New Issue
Block a user