diff --git a/src/libs/Navigation/AppNavigator/AuthScreens.tsx b/src/libs/Navigation/AppNavigator/AuthScreens.tsx index 2c11d308cc19..4d8b6309a9df 100644 --- a/src/libs/Navigation/AppNavigator/AuthScreens.tsx +++ b/src/libs/Navigation/AppNavigator/AuthScreens.tsx @@ -18,6 +18,7 @@ import useResponsiveLayout from '@hooks/useResponsiveLayout'; import useTheme from '@hooks/useTheme'; import {connect} from '@libs/actions/Delegate'; import setFullscreenVisibility from '@libs/actions/setFullscreenVisibility'; +import {init, isClientTheLeader} from '@libs/ActiveClientManager'; import {READ_COMMANDS} from '@libs/API/types'; import HttpUtils from '@libs/HttpUtils'; import KeyboardShortcut from '@libs/KeyboardShortcut'; @@ -283,6 +284,11 @@ function AuthScreens({session, lastOpenedPublicRoomID, initialLastUpdateIDApplie NetworkConnection.onReconnect(handleNetworkReconnect); PusherConnectionManager.init(); initializePusher(); + // Sometimes when we transition from old dot to new dot, the client is not the leader + // so we need to initialize the client again + if (!isClientTheLeader() && isTransitioning) { + init(); + } // In Hybrid App we decide to call one of those method when booting ND and we don't want to duplicate calls if (!CONFIG.IS_HYBRID_APP) {