NotificationV2 replace symbols

This commit is contained in:
Natsumi
2026-02-21 16:23:59 +11:00
parent 623a5bda77
commit c530405bf7

View File

@@ -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
}; };