Skip to content

Commit

Permalink
fix: remove top check for now
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardzjl committed Feb 19, 2024
1 parent 391349f commit 3c5f943
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web/src/routes/root/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3c5f943

Please sign in to comment.