mirror of
https://github.com/owncast/owncast.git
synced 2025-11-01 19:32:20 +08:00
Banned and chat disconnected states will hide chat. Closes #2764
This commit is contained in:
@ -63,6 +63,7 @@ export enum AppStateEvent {
|
||||
Offline = 'OFFLINE', // Stream is not live
|
||||
NeedsRegister = 'NEEDS_REGISTER', // Needs to register a chat user
|
||||
Fail = 'FAIL', // Error
|
||||
ChatUserDisabled = 'CHAT_USER_DISABLED', // Chat user is disabled
|
||||
}
|
||||
|
||||
const appStateModel =
|
||||
@ -97,6 +98,9 @@ const appStateModel =
|
||||
OFFLINE: {
|
||||
target: 'goodbye',
|
||||
},
|
||||
CHAT_USER_DISABLED: {
|
||||
target: 'chatUserDisabled',
|
||||
},
|
||||
},
|
||||
},
|
||||
offline: {
|
||||
@ -124,6 +128,12 @@ const appStateModel =
|
||||
},
|
||||
},
|
||||
},
|
||||
chatUserDisabled: {
|
||||
meta: {
|
||||
...ONLINE_STATE,
|
||||
chatAvailable: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
serverFailure: {
|
||||
|
||||
Reference in New Issue
Block a user