From 38be5ce54f5a4358d166701c0bd0b0ec46027ece Mon Sep 17 00:00:00 2001 From: Danish Ahmed Mirza <77742477+try-catch-stack@users.noreply.github.com> Date: Tue, 8 Feb 2022 17:37:10 +0530 Subject: [PATCH] [FIX] Unnecessary login dispatch on adding new server (#3693) --- app/lib/rocketchat.js | 1 - 1 file changed, 1 deletion(-) diff --git a/app/lib/rocketchat.js b/app/lib/rocketchat.js index f711edea..1361f183 100644 --- a/app/lib/rocketchat.js +++ b/app/lib/rocketchat.js @@ -263,7 +263,6 @@ const RocketChat = { } reduxStore.dispatch(connectSuccess()); const { server: currentServer } = reduxStore.getState().server; - const { user } = reduxStore.getState().login; if (user?.token && server === currentServer) { reduxStore.dispatch(loginRequest({ resume: user.token }, logoutOnError)); }