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 {
|
||||
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"`
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user