Fix open notification link

This commit is contained in:
Natsumi
2026-02-21 16:31:33 +11:00
parent c530405bf7
commit 92c9488298
2 changed files with 13 additions and 5 deletions

View File

@@ -292,11 +292,17 @@
function openSender() {
const userId = props.notification.senderUserId;
if (!userId) return;
if (userId.startsWith('grp_')) {
groupStore.showGroupDialog(userId);
} else {
userStore.showUserDialog(userId);
if (userId) {
if (userId.startsWith('grp_')) {
groupStore.showGroupDialog(userId);
} else {
userStore.showUserDialog(userId);
}
return;
}
const link = props.notification.link;
if (link) {
openNotificationLink(link);
}
}