This commit is contained in:
Timothy Jaeryang Baek
2026-04-13 21:33:43 -05:00
parent cf4218e688
commit 84ec43105c
+6
View File
@@ -180,6 +180,12 @@
}
const navigateHandler = async () => {
// Mark the outgoing chat as read before loading the new one.
// $chatId still holds the previous chat here — loadChat() updates it.
if ($chatId && $chatId !== chatIdProp && !$temporaryChatEnabled) {
updateLastReadAt($chatId);
}
loading = true;
prompt = '';