only pop from notifications list if Navigator reports canPop
This commit is contained in:
parent
45d69b0b9f
commit
684d6bad82
1 changed files with 3 additions and 1 deletions
|
|
@ -135,7 +135,9 @@ class const NotificationsList({
|
|||
child: HighlightWrapper(
|
||||
InkWell(
|
||||
onTap: () async {
|
||||
Navigator.of(context).pop();
|
||||
final navigator = Navigator.of(context);
|
||||
if (navigator.canPop()) navigator.pop();
|
||||
|
||||
await ref.focusRoom(roomId, rowId);
|
||||
},
|
||||
child: IgnorePointer(
|
||||
|
|
|
|||
Loading…
Reference in a new issue