mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 08:15:09 +00:00
fix: Process incoming uris
This commit is contained in:
parent
bb0e8aeb91
commit
5bc41fccbc
1 changed files with 3 additions and 2 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue