mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 08:15:09 +00:00
fix: Open matrixTo links
This commit is contained in:
parent
e8ffa34523
commit
d87c367ca8
1 changed files with 4 additions and 8 deletions
|
@ -119,14 +119,10 @@ class ChatListController extends State<ChatList> {
|
|||
}
|
||||
|
||||
void _processIncomingUris(String text) async {
|
||||
if (text == null || !text.startsWith(AppConfig.appOpenUrlScheme)) return;
|
||||
if (text.toLowerCase().startsWith(AppConfig.inviteLinkPrefix) ||
|
||||
(text.toLowerCase().startsWith(AppConfig.schemePrefix) &&
|
||||
!RegExp(r'\s').hasMatch(text))) {
|
||||
VRouter.of(context).to('/rooms');
|
||||
UrlLauncher(context, text).openMatrixToUrl();
|
||||
return;
|
||||
}
|
||||
if (text == null) return;
|
||||
VRouter.of(context).to('/rooms');
|
||||
UrlLauncher(context, text).openMatrixToUrl();
|
||||
return;
|
||||
}
|
||||
|
||||
void _initReceiveSharingIntent() {
|
||||
|
|
Loading…
Reference in a new issue