diff --git a/server/internal/http/legacy/wstobackend.go b/server/internal/http/legacy/wstobackend.go index c78b0497..1da99e5c 100644 --- a/server/internal/http/legacy/wstobackend.go +++ b/server/internal/http/legacy/wstobackend.go @@ -304,8 +304,11 @@ func (s *session) wsToBackend(msg []byte) error { return err } - // TODO: No WS equivalent, call HTTP API. - return fmt.Errorf("event not implemented: %s", header.Event) + // TODO: we need to send a message to the user before kicking them + // that they are being kicked so they will not automatically rejoin + return s.apiReq(http.MethodPost, "/api/members/"+request.ID, map[string]any{ + "can_login": false, + }, nil) case oldEvent.ADMIN_MUTE: request := &oldMessage.Admin{}