fix: Process incoming uris

This commit is contained in:
Krille Fear 2021-11-26 14:59:35 +01:00
parent b6f5e081a3
commit 4eea1faa05
1 changed files with 3 additions and 2 deletions

View File

@ -115,10 +115,11 @@ class ChatListController extends State<ChatList> {
void _processIncomingSharedText(String text) {
if (text == null) return;
VRouter.of(context).to('/rooms');
if (text.toLowerCase().startsWith(AppConfig.inviteLinkPrefix) ||
if (text.toLowerCase().startsWith(AppConfig.deepLinkPrefix) ||
text.toLowerCase().startsWith(AppConfig.inviteLinkPrefix) ||
(text.toLowerCase().startsWith(AppConfig.schemePrefix) &&
!RegExp(r'\s').hasMatch(text))) {
return;
return _processIncomingUris(text);
}
Matrix.of(context).shareContent = {
'msgtype': 'm.text',