mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-10 16:33:11 -06:00
Doc'd profileUpdate structure
This commit is contained in:
parent
0443034722
commit
d195b2df6f
|
|
@ -43,10 +43,12 @@ type displayName struct {
|
|||
DisplayName string `json:"displayname"`
|
||||
}
|
||||
|
||||
// TODO: Move this struct to `common` so the components that consume the topic
|
||||
// can use it when parsing incoming messages
|
||||
type profileUpdate struct {
|
||||
Updated string `json:"updated"`
|
||||
OldValue string `json:"old_value"`
|
||||
NewValue string `json:"new_value"`
|
||||
Updated string `json:"updated"` // Which attribute is updated (can be either `avatar_url` or `displayname`)
|
||||
OldValue string `json:"old_value"` // The attribute's value before the update
|
||||
NewValue string `json:"new_value"` // The attribute's value after the update
|
||||
}
|
||||
|
||||
// GetProfile implements GET /profile/{userID}
|
||||
|
|
|
|||
Loading…
Reference in a new issue