From f980b0ee6edf6eb2a9b246a5b0d2d9366642efe7 Mon Sep 17 00:00:00 2001 From: pa Date: Thu, 19 Mar 2026 17:20:15 +0900 Subject: [PATCH] fix: Clear incoming friend request status on accept/expire --- src/stores/notification/index.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/stores/notification/index.js b/src/stores/notification/index.js index 80adb9af..bf68cffa 100644 --- a/src/stores/notification/index.js +++ b/src/stores/notification/index.js @@ -540,7 +540,6 @@ export const useNotificationStore = defineStore('Notification', () => { const D = userStore.userDialog; if ( - D.visible === false || typeof args.ref === 'undefined' || args.ref.type !== 'friendRequest' || args.ref.senderUserId !== D.id @@ -548,6 +547,7 @@ export const useNotificationStore = defineStore('Notification', () => { return; } D.isFriend = true; + D.incomingRequest = false; } /** @@ -557,11 +557,7 @@ export const useNotificationStore = defineStore('Notification', () => { function handleNotificationExpire(args) { const { ref } = args; const D = userStore.userDialog; - if ( - D.visible === false || - ref.type !== 'friendRequest' || - ref.senderUserId !== D.id - ) { + if (ref.type !== 'friendRequest' || ref.senderUserId !== D.id) { return; } D.incomingRequest = false;