refac
This commit is contained in:
@@ -180,6 +180,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
const navigateHandler = async () => {
|
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;
|
loading = true;
|
||||||
|
|
||||||
prompt = '';
|
prompt = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user