Merge pull request #4656 from pangeachat/4654-receive-notification-for-every-message-despite-having-app-opened

fix: don't show foreground notifications for the active room
This commit is contained in:
ggurdin 2025-11-14 09:44:09 -05:00 committed by GitHub
commit 83416c743a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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 =