From 2d392425ff0c24005528e2f37966680c573c8aff Mon Sep 17 00:00:00 2001 From: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com> Date: Thu, 14 Oct 2021 16:38:32 -0300 Subject: [PATCH] [FIX] Unnecessary navigation on server forced logout (#3428) --- app/sagas/login.js | 3 --- 1 file changed, 3 deletions(-) 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;