mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
Rename displayname to name.
This commit is contained in:
parent
570efbf3a6
commit
eec285cd07
@ -22,9 +22,9 @@ type SignalProvide struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type SignalAnswer struct {
|
type SignalAnswer struct {
|
||||||
Event string `json:"event"`
|
Event string `json:"event"`
|
||||||
DisplayName string `json:"displayname"`
|
Name string `json:"displayname"` // TODO: Change.
|
||||||
SDP string `json:"sdp"`
|
SDP string `json:"sdp"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type MembersList struct {
|
type MembersList struct {
|
||||||
@ -34,14 +34,14 @@ type MembersList struct {
|
|||||||
|
|
||||||
type MembersListEntry struct {
|
type MembersListEntry struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
Name string `json:"displayname"`
|
Name string `json:"displayname"` // TODO: Change.
|
||||||
Admin bool `json:"admin"`
|
Admin bool `json:"admin"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Member struct {
|
type Member struct {
|
||||||
Event string `json:"event"`
|
Event string `json:"event"`
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
Name string `json:"displayname"`
|
Name string `json:"displayname"` // TODO: Change.
|
||||||
Admin bool `json:"admin"`
|
Admin bool `json:"admin"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,6 +22,6 @@ func (h *MessageHandlerCtx) signalProvide(session types.Session) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (h *MessageHandlerCtx) signalAnswer(session types.Session, payload *message.SignalAnswer) error {
|
func (h *MessageHandlerCtx) signalAnswer(session types.Session, payload *message.SignalAnswer) error {
|
||||||
session.SetName(payload.DisplayName)
|
session.SetName(payload.Name)
|
||||||
return session.SignalAnswer(payload.SDP)
|
return session.SignalAnswer(payload.SDP)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user