mirror of
https://github.com/streamwall/streamwall.git
synced 2025-12-06 01:45:37 -05:00
Include auth state in initial state
This commit is contained in:
@@ -206,6 +206,7 @@ async function initApp({ baseURL, clientStaticPath }: AppOptions) {
|
|||||||
if (msg.type === 'state') {
|
if (msg.type === 'state') {
|
||||||
if (clientState === null) {
|
if (clientState === null) {
|
||||||
clientState = new StateWrapper(msg.state)
|
clientState = new StateWrapper(msg.state)
|
||||||
|
clientState.update({ auth: auth.getState() })
|
||||||
currentStreamwallConn = {
|
currentStreamwallConn = {
|
||||||
ws,
|
ws,
|
||||||
clientState,
|
clientState,
|
||||||
|
|||||||
Reference in New Issue
Block a user