fix: UiaRequestManager

This commit is contained in:
Krille Fear 2021-10-26 20:01:53 +02:00
commit 0a17e91d72
2 changed files with 30 additions and 33 deletions

View file

@ -346,10 +346,7 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
SettingKeys.ownStatusMessage, presence.presence.statusMsg);
}
});
onUiaRequest[name] ??= c.onUiaRequest.stream.listen(
UiaRequestManager(client, L10n.of(widget.context), navigatorContext)
.onUiaRequest,
);
onUiaRequest[name] ??= c.onUiaRequest.stream.listen(uiaRequestHandler);
if (PlatformInfos.isWeb || PlatformInfos.isLinux) {
c.onSync.stream.first.then((s) {
html.Notification.requestPermission();