fix: don't show foreground notifications for the active room
This commit is contained in:
parent
e7b401e139
commit
77a0d7deb7
1 changed files with 4 additions and 1 deletions
|
|
@ -241,7 +241,10 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
|
|||
String? get activeRoomId {
|
||||
final route = FluffyChatApp.router.routeInformationProvider.value.uri.path;
|
||||
if (!route.startsWith('/rooms/')) return null;
|
||||
return route.split('/')[2];
|
||||
// #Pangea
|
||||
// return route.split('/')[2];
|
||||
return FluffyChatApp.router.state.pathParameters['roomid'];
|
||||
// Pangea#
|
||||
}
|
||||
|
||||
final linuxNotifications =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue