From 3473b562602ad600215cf33a86a3986bd42486d9 Mon Sep 17 00:00:00 2001 From: notfire Date: Tue, 21 Jan 2025 12:24:30 -0500 Subject: [PATCH] fix the frontend thinking there's a new (unshown) post when you post something with websockets enabled --- src/modules/api.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/api.js b/src/modules/api.js index 65b22414..77b5ee3f 100644 --- a/src/modules/api.js +++ b/src/modules/api.js @@ -115,6 +115,8 @@ const api = { ({ detail: message }) => { const replyVisibility = rootState.config.replyVisibility; if (!message) return; // pings + // check deletes to avoid an error in console + if ((message.event !== "delete") && (message.status.user.id === store.rootState.users.currentUser.id)) return; if (message.event === "notification") { dispatch("addNewNotifications", { notifications: [message.notification],