fix: Open matrixTo links

This commit is contained in:
Christian Pauly 2021-08-28 10:50:12 +02:00
parent abe200f90a
commit 8aa0670e83

View File

@ -119,14 +119,10 @@ class ChatListController extends State<ChatList> {
} }
void _processIncomingUris(String text) async { void _processIncomingUris(String text) async {
if (text == null || !text.startsWith(AppConfig.appOpenUrlScheme)) return; if (text == null) return;
if (text.toLowerCase().startsWith(AppConfig.inviteLinkPrefix) || VRouter.of(context).to('/rooms');
(text.toLowerCase().startsWith(AppConfig.schemePrefix) && UrlLauncher(context, text).openMatrixToUrl();
!RegExp(r'\s').hasMatch(text))) { return;
VRouter.of(context).to('/rooms');
UrlLauncher(context, text).openMatrixToUrl();
return;
}
} }
void _initReceiveSharingIntent() { void _initReceiveSharingIntent() {