Bots: Fix opening webapps and games (#2377)
This commit is contained in:
parent
564acf2315
commit
d03755ded0
@ -575,10 +575,6 @@ addActionHandler('markBotTrusted', (global, actions, payload): ActionReturnType
|
||||
trustedBotIds: Array.from(newTrustedBotIds),
|
||||
};
|
||||
|
||||
global = updateTabState(global, {
|
||||
botTrustRequest: undefined,
|
||||
}, tabId);
|
||||
|
||||
const tabState = selectTabState(global, tabId);
|
||||
if (tabState.botTrustRequest?.onConfirm) {
|
||||
const { action, payload: callbackPayload } = tabState.botTrustRequest.onConfirm;
|
||||
@ -586,6 +582,10 @@ addActionHandler('markBotTrusted', (global, actions, payload): ActionReturnType
|
||||
actions[action](callbackPayload);
|
||||
}
|
||||
|
||||
global = updateTabState(global, {
|
||||
botTrustRequest: undefined,
|
||||
}, tabId);
|
||||
|
||||
setGlobal(global);
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user