remove no_session event

This commit is contained in:
srgooglo 2022-09-07 16:31:21 +02:00
parent 7224f3dec7
commit c030bafb8a

View File

@ -131,9 +131,6 @@ class App extends React.Component {
icon: <Icons.MdOutlineAccessTimeFilled />, icon: <Icons.MdOutlineAccessTimeFilled />,
}) })
}, },
"no_session": async () => {
app.eventBus.emit("forceToLogin")
},
"websocket_connected": () => { "websocket_connected": () => {
if (this.wsReconnecting) { if (this.wsReconnecting) {
this.wsReconnectingTry = 0 this.wsReconnectingTry = 0
@ -386,7 +383,7 @@ class App extends React.Component {
const token = await Session.token const token = await Session.token
if (!token || token == null) { if (!token || token == null) {
window.app.eventBus.emit("no_session") //window.app.eventBus.emit("no_session")
return false return false
} }