fix: don't show foreground notifications for the active room

This commit is contained in:
ggurdin 2025-11-14 09:43:15 -05:00
parent e7b401e139
commit 77a0d7deb7
No known key found for this signature in database
GPG key ID: A01CB41737CBB478

View file

@ -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 =