add MemberId to init.

This commit is contained in:
Miroslav Šedivý 2020-11-30 22:24:58 +01:00
parent 2c7291324c
commit b194f8034a
2 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@ type Message struct {
type SystemInit struct {
Event string `json:"event,omitempty"`
MemberId string `json:"member_id"`
ControlHost ControlHost `json:"control_host"`
ScreenSize ScreenSize `json:"screen_size"`
Members []MemberData `json:"members"`

View File

@ -35,6 +35,7 @@ func (h *MessageHandlerCtx) systemInit(session types.Session) error {
return session.Send(
message.SystemInit{
Event: event.SYSTEM_INIT,
MemberId: session.ID(),
ControlHost: controlHost,
Members: members,
ScreenSize: message.ScreenSize{