fix: jump cannot work properly when there are multi users
This commit is contained in:
parent
ccb2a23075
commit
940d3e62db
4 changed files with 17 additions and 2 deletions
|
|
@ -147,8 +147,8 @@ extension LocalNotificationsExtension on MatrixState {
|
|||
);
|
||||
break;
|
||||
case DesktopNotificationActions.openChat:
|
||||
if (userId != null) {
|
||||
Matrix.of(context).setActiveClientWithUserId(userId);
|
||||
if (userId != null && controller != null) {
|
||||
controller!.setActiveClientWithUserId(userId);
|
||||
}
|
||||
|
||||
FluffyChatApp.router.go('/rooms/${event.room.id}');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue