From 3c5f943ac546f514221757224b459be408f8e203 Mon Sep 17 00:00:00 2001 From: jlzhou Date: Mon, 19 Feb 2024 23:11:48 +0800 Subject: [PATCH] fix: remove top check for now --- web/src/routes/root/index.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/src/routes/root/index.jsx b/web/src/routes/root/index.jsx index 41a6fa07..4494d84d 100644 --- a/web/src/routes/root/index.jsx +++ b/web/src/routes/root/index.jsx @@ -128,9 +128,11 @@ const Root = () => { // Because going from convId to the same convId is skipped in shoudRevalidate. // So I need to perform an action here. if (content.type === "msg-added") { - if (groupedConvs.Today[0].id !== conversation) { + // TODO: sometimes the groupedConvs here is not the latest, maybe it's fixed when the websocket connects. + // Disable the check for now. + // if (groupedConvs.Today[0].id !== conversation) { submit(null, { method: "post", action: `/conversations/${conversation}` }); - } + // } } else if (content.type === "title-generated") { submit(null, { method: "post", action: `/conversations/${conversation}` }); } else {