mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-27 02:33:48 +02:00
Rewrite shared feed
This commit is contained in:
@@ -30,15 +30,7 @@ export function useInstanceActivityData() {
|
||||
async function getWorldNameData() {
|
||||
worldNameArray.value = await Promise.all(
|
||||
activityData.value.map(async (item) => {
|
||||
try {
|
||||
return await getWorldName(item.location);
|
||||
} catch {
|
||||
console.error(
|
||||
'getWorldName failed location',
|
||||
item.location
|
||||
);
|
||||
return 'Unknown world';
|
||||
}
|
||||
return await getWorldName(item.location);
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
padding: `${16 * props.cardScale * props.cardSpacing}px`
|
||||
}));
|
||||
|
||||
const avatarFallback = computed(() => props.friend.name.charAt(0) ?? '?');
|
||||
const avatarFallback = computed(() => props.friend?.name?.charAt(0) ?? '?');
|
||||
|
||||
const statusDotClass = computed(() => {
|
||||
const status = userStatusClass(props.friend.ref, props.friend.pendingOffline);
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
const { photonLoggingEnabled } = storeToRefs(usePhotonStore());
|
||||
const { notyFeedFiltersOptions, wristFeedFiltersOptions, photonFeedFiltersOptions } = feedFiltersOptions();
|
||||
const { sharedFeedFilters } = storeToRefs(useNotificationsSettingsStore());
|
||||
const { updateSharedFeed } = useSharedFeedStore();
|
||||
const { loadSharedFeed } = useSharedFeedStore();
|
||||
|
||||
const props = defineProps({
|
||||
feedFiltersDialogMode: {
|
||||
@@ -136,7 +136,7 @@
|
||||
|
||||
function saveSharedFeedFilters() {
|
||||
configRepository.setString('sharedFeedFilters', JSON.stringify(sharedFeedFilters.value));
|
||||
updateSharedFeed(true);
|
||||
loadSharedFeed();
|
||||
}
|
||||
|
||||
function resetNotyFeedFilters() {
|
||||
|
||||
Reference in New Issue
Block a user