Filter & open group from Event Announcement

This commit is contained in:
Natsumi
2025-07-28 04:57:07 +12:00
parent 769cd671b3
commit 07f5964449
2 changed files with 14 additions and 0 deletions

View File

@@ -20,6 +20,7 @@
'ignoredFriendRequest',
'message',
'boop',
'event.announcement',
'groupChange',
'group.announcement',
'group.informative',
@@ -491,6 +492,16 @@
case 'user':
showUserDialog(data[1]);
break;
case 'event':
const ids = data[1].split(',');
if (ids.length < 2) {
console.error('Invalid event notification link:', data[1]);
return;
}
showGroupDialog(ids[0]);
// ids[1] cal_ is the event id
break;
}
}