diff --git a/app/sagas/login.js b/app/sagas/login.js index c3f98705..1d8f688f 100644 --- a/app/sagas/login.js +++ b/app/sagas/login.js @@ -20,7 +20,6 @@ import { encryptionInit, encryptionStop } from '../actions/encryption'; import UserPreferences from '../lib/userPreferences'; import { inquiryRequest, inquiryReset } from '../ee/omnichannel/actions/inquiry'; import { isOmnichannelStatusAvailable } from '../ee/omnichannel/lib'; -import Navigation from '../lib/Navigation'; const getServer = state => state.server.server; const loginWithPasswordCall = args => RocketChat.loginWithPassword(args); @@ -191,8 +190,6 @@ const handleLogout = function* handleLogout({ forcedByServer }) { yield put(appStart({ root: ROOT_OUTSIDE })); showErrorAlert(I18n.t('Logged_out_by_server'), I18n.t('Oops')); yield delay(300); - Navigation.navigate('NewServerView'); - yield delay(300); EventEmitter.emit('NewServer', { server }); } else { const serversDB = database.servers;