fix: tts friend's name change bug

This commit is contained in:
pa
2026-03-28 23:04:10 +09:00
parent 2be92cc45f
commit 551c7993c6

View File

@@ -828,7 +828,9 @@ export const useNotificationStore = defineStore('Notification', () => {
return;
}
let displayName = '';
if (noty.displayName) {
if (noty.type === 'DisplayName' && noty.previousDisplayName) {
displayName = noty.previousDisplayName;
} else if (noty.displayName) {
displayName = noty.displayName;
} else if (noty.senderUsername) {
displayName = noty.senderUsername;