chore: remove the userId param

now I do not pass userId in
This commit is contained in:
ShootingStarDragons 2025-11-19 19:39:36 +09:00
commit 1c614490f1
2 changed files with 7 additions and 12 deletions

View file

@ -23,7 +23,7 @@ extension LocalNotificationsExtension on MatrixState {
..src = 'assets/assets/sounds/notification.ogg'
..load();
void showLocalNotification(Event event, String? userId) async {
void showLocalNotification(Event event) async {
final roomId = event.room.id;
if (activeRoomId == roomId) {
if (kIsWeb && webHasFocus) return;
@ -147,9 +147,7 @@ extension LocalNotificationsExtension on MatrixState {
);
break;
case DesktopNotificationActions.openChat:
if (userId != null) {
setActiveClient(event.room.client);
}
setActiveClient(event.room.client);
FluffyChatApp.router.go('/rooms/${event.room.id}');
break;