chore: remove the userId param
now I do not pass userId in
This commit is contained in:
parent
175d06515d
commit
1c614490f1
2 changed files with 7 additions and 12 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue