mirror of
https://github.com/matrix-org/gomatrix
synced 2025-06-06 14:53:22 +00:00
Add RespUserDisplayName
This commit is contained in:
parent
1ed3413986
commit
fdea86cdb9
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue