Safety checks on autojoin
This commit is contained in:
parent
841d03cdec
commit
1f8db9b70e
|
@ -197,13 +197,15 @@ export default {
|
|||
return this.$router.push('/signin')
|
||||
}
|
||||
console.log('Settings', settings)
|
||||
if (settings.autoJoin) {
|
||||
await this.$store.dispatch('autoJoin', {
|
||||
if (settings.autoJoin === true || settings.autoJoin === 'true') {
|
||||
if (settings.autoJoinServer) {
|
||||
this.$store.dispatch('autoJoin', {
|
||||
server: settings.autoJoinServer,
|
||||
password: settings.autoJoinPassword,
|
||||
room: settings.autoJoinRoom
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// if (this.$store.getters.getAutoJoin) {
|
||||
// // Attempt to auto join
|
||||
|
|
Loading…
Reference in New Issue