Rename displayname to name.

This commit is contained in:
Miroslav Šedivý 2020-11-16 22:22:19 +01:00
parent 570efbf3a6
commit eec285cd07
2 changed files with 6 additions and 6 deletions

View File

@ -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"`
} }

View File

@ -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)
} }