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 {
Event string `json:"event"`
DisplayName string `json:"displayname"`
SDP string `json:"sdp"`
Event string `json:"event"`
Name string `json:"displayname"` // TODO: Change.
SDP string `json:"sdp"`
}
type MembersList struct {
@ -34,14 +34,14 @@ type MembersList struct {
type MembersListEntry struct {
ID string `json:"id"`
Name string `json:"displayname"`
Name string `json:"displayname"` // TODO: Change.
Admin bool `json:"admin"`
}
type Member struct {
Event string `json:"event"`
ID string `json:"id"`
Name string `json:"displayname"`
Name string `json:"displayname"` // TODO: Change.
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 {
session.SetName(payload.DisplayName)
session.SetName(payload.Name)
return session.SignalAnswer(payload.SDP)
}