2
2
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:
Miroslav Šedivý
2021-01-22 14:09:47 +01:00
parent afd3dd2f56
commit 407853eeb1
5 changed files with 82 additions and 53 deletions
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(),
},
})
}