mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-11 17:03:10 -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"`
|
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 {
|
type profileUpdate struct {
|
||||||
Updated string `json:"updated"`
|
Updated string `json:"updated"` // Which attribute is updated (can be either `avatar_url` or `displayname`)
|
||||||
OldValue string `json:"old_value"`
|
OldValue string `json:"old_value"` // The attribute's value before the update
|
||||||
NewValue string `json:"new_value"`
|
NewValue string `json:"new_value"` // The attribute's value after the update
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetProfile implements GET /profile/{userID}
|
// GetProfile implements GET /profile/{userID}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue