mirror of https://github.com/matrix-org/gomatrix
Add RespUserDisplayName
This commit is contained in:
parent
1ed3413986
commit
fdea86cdb9
|
@ -90,6 +90,11 @@ type RespUserInteractive struct {
|
||||||
Error string `json:"error"`
|
Error string `json:"error"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// RespUserDisplayName is the JSON response for https://matrix.org/docs/spec/client_server/r0.2.0.html#get-matrix-client-r0-profile-userid-displayname
|
||||||
|
type RespUserDisplayName struct {
|
||||||
|
DisplayName string `json:"displayname"`
|
||||||
|
}
|
||||||
|
|
||||||
// HasSingleStageFlow returns true if there exists at least 1 Flow with a single stage of stageName.
|
// HasSingleStageFlow returns true if there exists at least 1 Flow with a single stage of stageName.
|
||||||
func (r RespUserInteractive) HasSingleStageFlow(stageName string) bool {
|
func (r RespUserInteractive) HasSingleStageFlow(stageName string) bool {
|
||||||
for _, f := range r.Flows {
|
for _, f := range r.Flows {
|
||||||
|
|
Loading…
Reference in New Issue