mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 22:33:50 +02:00
Fix unfriend date on user dialog
This commit is contained in:
@@ -949,23 +949,6 @@ export const useUserStore = defineStore('User', () => {
|
||||
notification.created_at
|
||||
);
|
||||
}
|
||||
if (
|
||||
!D.dateFriended &&
|
||||
notification.type === 'Unfriend'
|
||||
) {
|
||||
D.unFriended = true;
|
||||
if (
|
||||
!appearanceSettingsStore.hideUnfriends
|
||||
) {
|
||||
D.dateFriended =
|
||||
notification.created_at;
|
||||
}
|
||||
}
|
||||
if (notification.type === 'Friend') {
|
||||
D.unFriended = false;
|
||||
D.dateFriended =
|
||||
notification.created_at;
|
||||
}
|
||||
if (
|
||||
notification.type === 'Friend' ||
|
||||
(notification.type === 'Unfriend' &&
|
||||
@@ -975,6 +958,14 @@ export const useUserStore = defineStore('User', () => {
|
||||
}
|
||||
}
|
||||
D.dateFriendedInfo = dateFriendedInfo;
|
||||
if (dateFriendedInfo.length > 0) {
|
||||
const latestFriendedInfo =
|
||||
dateFriendedInfo[0];
|
||||
D.unFriended =
|
||||
latestFriendedInfo.type === 'Unfriend';
|
||||
D.dateFriended =
|
||||
latestFriendedInfo.created_at;
|
||||
}
|
||||
displayNameMap.forEach(
|
||||
(updated_at, displayName) => {
|
||||
D.previousDisplayNames.push({
|
||||
|
||||
Reference in New Issue
Block a user