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