Skip to content

Commit 03b57ea

Browse files
committed
Prevent resetting last_opened_tab_id when tab reuse is not applicable
1 parent 279a531 commit 03b57ea

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎apps/browser/src/background/message-handler.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ const process_next_chat = async () => {
104104
}
105105

106106
let tab_reused = false
107+
107108
if (
108109
last_opened_tab_id !== undefined &&
109110
current_chat_message.reuse_last_tab &&
@@ -117,8 +118,6 @@ const process_next_chat = async () => {
117118
active: true
118119
})
119120
tab_reused = true
120-
} else {
121-
last_opened_tab_id = undefined
122121
}
123122
} catch {
124123
last_opened_tab_id = undefined

0 commit comments

Comments
 (0)