fix: No push setup

This commit is contained in:
Christian Pauly 2021-05-28 20:32:52 +02:00
commit a9be871956
4 changed files with 23 additions and 10 deletions

View file

@ -354,7 +354,13 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
}
if (PlatformInfos.isMobile) {
_backgroundPush = BackgroundPush(client, navigatorContext, widget.router);
_backgroundPush = BackgroundPush(
client,
context,
widget.router,
onFcmError: (errorMsg) => ScaffoldMessenger.of(context)
.showSnackBar(SnackBar(content: Text(errorMsg))),
);
}
}