2
0
Fork 0

fix the frontend thinking there's a new (unshown) post when you post something with websockets enabled

This commit is contained in:
notfire 2025-01-21 12:24:30 -05:00
commit 3473b56260
No known key found for this signature in database
GPG key ID: 3AFDACAAB4E56B16

View file

@ -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],