mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-27 18:53:47 +02:00
NotificationV2 replace symbols
This commit is contained in:
@@ -479,6 +479,12 @@ export const useNotificationStore = defineStore('Notification', () => {
|
|||||||
delete json[key];
|
delete json[key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (json.message) {
|
||||||
|
json.message = replaceBioSymbols(json.message);
|
||||||
|
}
|
||||||
|
if (json.title) {
|
||||||
|
json.title = replaceBioSymbols(json.title);
|
||||||
|
}
|
||||||
let ref = notificationTable.value.data.find((n) => n.id === json.id);
|
let ref = notificationTable.value.data.find((n) => n.id === json.id);
|
||||||
if (typeof ref === 'undefined') {
|
if (typeof ref === 'undefined') {
|
||||||
ref = {
|
ref = {
|
||||||
@@ -493,8 +499,11 @@ export const useNotificationStore = defineStore('Notification', () => {
|
|||||||
title: '',
|
title: '',
|
||||||
imageUrl: '',
|
imageUrl: '',
|
||||||
seen: false,
|
seen: false,
|
||||||
|
senderUserId: '',
|
||||||
|
senderUsername: '',
|
||||||
data: {},
|
data: {},
|
||||||
responses: [],
|
responses: [],
|
||||||
|
details: {},
|
||||||
version: 2,
|
version: 2,
|
||||||
...json
|
...json
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user