Connection: Fix reconnect logic being called on sync (#3840)
This commit is contained in:
parent
fb614840f6
commit
aa2c065eef
@ -221,6 +221,7 @@ function onUpdateConnectionState<T extends GlobalState>(
|
||||
};
|
||||
setGlobal(global);
|
||||
|
||||
if (global.isSynced) {
|
||||
const channelStackIds = Object.values(global.byTabId)
|
||||
.flatMap((tab) => tab.messageLists)
|
||||
.map((messageList) => messageList.chatId)
|
||||
@ -233,6 +234,7 @@ function onUpdateConnectionState<T extends GlobalState>(
|
||||
actions.requestChannelDifference({ chatId });
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (connectionState === 'connectionStateBroken') {
|
||||
actions.signOut({ forceInitApi: true });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user