mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
decouple BroadcastManager from CaptureManager.
This commit is contained in:
internal
@ -75,13 +75,14 @@ func (h *MessageHandlerCtx) systemAdmin(session types.Session) error {
|
||||
}
|
||||
}
|
||||
|
||||
broadcast := h.capture.Broadcast()
|
||||
return session.Send(
|
||||
message.SystemAdmin{
|
||||
Event: event.SYSTEM_ADMIN,
|
||||
ScreenSizesList: screenSizesList,
|
||||
BroadcastStatus: message.BroadcastStatus{
|
||||
IsActive: h.capture.BroadcastEnabled(),
|
||||
URL: h.capture.BroadcastUrl(),
|
||||
IsActive: broadcast.Enabled(),
|
||||
URL: broadcast.Url(),
|
||||
},
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user