mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-26 02:03:49 +02:00
Instance names in VR wrist feed, replace emojis
This commit is contained in:
@@ -17,7 +17,8 @@ import {
|
||||
getWorldName,
|
||||
hasGroupPermission,
|
||||
isRealInstance,
|
||||
parseLocation
|
||||
parseLocation,
|
||||
replaceBioSymbols
|
||||
} from '../shared/utils';
|
||||
import { useFriendStore } from './friend';
|
||||
import { useGroupStore } from './group';
|
||||
@@ -390,6 +391,9 @@ export const useInstanceStore = defineStore('Instance', () => {
|
||||
ref.$disabledContentSettings.push(setting);
|
||||
}
|
||||
}
|
||||
if (ref.displayName) {
|
||||
ref.displayName = replaceBioSymbols(ref.displayName);
|
||||
}
|
||||
if (
|
||||
userStore.userDialog.visible &&
|
||||
userStore.userDialog.ref.$location.tag === ref.id
|
||||
|
||||
@@ -216,6 +216,26 @@ export const useSharedFeedStore = defineStore('SharedFeed', () => {
|
||||
return 0;
|
||||
});
|
||||
wristFeed.splice(16);
|
||||
// temp fix, tack on instance names in the worst way possible
|
||||
for (let feedEntry of wristFeed) {
|
||||
if (feedEntry.location) {
|
||||
const instanceRef = instanceStore.cachedInstances.get(
|
||||
feedEntry.location
|
||||
);
|
||||
if (instanceRef?.displayName) {
|
||||
feedEntry.instanceDisplayName = instanceRef.displayName;
|
||||
}
|
||||
}
|
||||
// invites
|
||||
if (feedEntry.details?.worldId) {
|
||||
const instanceRef = instanceStore.cachedInstances.get(
|
||||
feedEntry.details.worldId
|
||||
);
|
||||
if (instanceRef?.displayName) {
|
||||
feedEntry.instanceDisplayName = instanceRef.displayName;
|
||||
}
|
||||
}
|
||||
}
|
||||
AppApi.ExecuteVrFeedFunction(
|
||||
'wristFeedUpdate',
|
||||
JSON.stringify(wristFeed)
|
||||
|
||||
Reference in New Issue
Block a user