From 3788d81061328603225882791c2c01de938084d4 Mon Sep 17 00:00:00 2001 From: m1k1o Date: Mon, 18 Jan 2021 13:26:01 +0100 Subject: [PATCH] fix message struct --- server/internal/websocket/session.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/internal/websocket/session.go b/server/internal/websocket/session.go index 899368d..8288b2d 100644 --- a/server/internal/websocket/session.go +++ b/server/internal/websocket/session.go @@ -25,7 +25,7 @@ func (h *MessageHandler) SessionCreated(id string, session types.Session) error // if locked, notify admin about that if h.locked { - if err := session.Send(message.MembersList{ + if err := session.Send(message.Admin{ Event: event.ADMIN_LOCK, ID: id, }); err != nil {