fix the frontend thinking there's a new (unshown) post when you post something with websockets enabled
This commit is contained in:
parent
3c721442bd
commit
3473b56260
1 changed files with 2 additions and 0 deletions
|
|
@ -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],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue