mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 06:43:51 +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;
|
const D = userStore.userDialog;
|
||||||
if (
|
if (
|
||||||
D.visible === false ||
|
|
||||||
typeof args.ref === 'undefined' ||
|
typeof args.ref === 'undefined' ||
|
||||||
args.ref.type !== 'friendRequest' ||
|
args.ref.type !== 'friendRequest' ||
|
||||||
args.ref.senderUserId !== D.id
|
args.ref.senderUserId !== D.id
|
||||||
@@ -548,6 +547,7 @@ export const useNotificationStore = defineStore('Notification', () => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
D.isFriend = true;
|
D.isFriend = true;
|
||||||
|
D.incomingRequest = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -557,11 +557,7 @@ export const useNotificationStore = defineStore('Notification', () => {
|
|||||||
function handleNotificationExpire(args) {
|
function handleNotificationExpire(args) {
|
||||||
const { ref } = args;
|
const { ref } = args;
|
||||||
const D = userStore.userDialog;
|
const D = userStore.userDialog;
|
||||||
if (
|
if (ref.type !== 'friendRequest' || ref.senderUserId !== D.id) {
|
||||||
D.visible === false ||
|
|
||||||
ref.type !== 'friendRequest' ||
|
|
||||||
ref.senderUserId !== D.id
|
|
||||||
) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
D.incomingRequest = false;
|
D.incomingRequest = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user