mirror of
https://github.com/owncast/owncast.git
synced 2024-11-26 06:46:01 +03:00
No longer save chat ban state locally. Closes #1518
This commit is contained in:
parent
a33646e59f
commit
cae02f0902
2 changed files with 4 additions and 7 deletions
|
@ -102,15 +102,14 @@ export default class StandaloneChat extends Component {
|
|||
|
||||
// If this is the first time setting the config
|
||||
// then setup chat if it's enabled.
|
||||
const chatBlocked = getLocalStorage('owncast_chat_blocked');
|
||||
if (!chatBlocked && !this.hasConfiguredChat && !chatDisabled) {
|
||||
if (!this.hasConfiguredChat && !chatDisabled) {
|
||||
this.setupChatAuth();
|
||||
}
|
||||
|
||||
this.hasConfiguredChat = true;
|
||||
|
||||
this.setState({
|
||||
canChat: !chatBlocked,
|
||||
canChat: !chatDisabled,
|
||||
configData: {
|
||||
...data,
|
||||
},
|
||||
|
|
|
@ -223,15 +223,14 @@ export default class App extends Component {
|
|||
|
||||
// If this is the first time setting the config
|
||||
// then setup chat if it's enabled.
|
||||
const chatBlocked = getLocalStorage('owncast_chat_blocked');
|
||||
if (!chatBlocked && !this.hasConfiguredChat && !chatDisabled) {
|
||||
if (!this.hasConfiguredChat && !chatDisabled) {
|
||||
this.setupChatAuth();
|
||||
}
|
||||
|
||||
this.hasConfiguredChat = true;
|
||||
|
||||
this.setState({
|
||||
canChat: !chatBlocked,
|
||||
canChat: !chatDisabled,
|
||||
configData: {
|
||||
...data,
|
||||
summary: summary && addNewlines(summary),
|
||||
|
@ -569,7 +568,6 @@ export default class App extends Component {
|
|||
}
|
||||
|
||||
handleBlockedChat() {
|
||||
setLocalStorage('owncast_chat_blocked', true);
|
||||
this.disableChat();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue