mirror of
https://github.com/vrcx-team/VRCX.git
synced 2026-04-06 00:32:02 +02:00
fix: Clear incoming friend request status on accept/expire
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user