mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-01-23 10:34:25 +01:00
Merge branch 'krille/incoming-uris' into 'main'
fix: Process incoming uris See merge request famedly/fluffychat!583
This commit is contained in:
commit
7d6af9bf59
@ -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 New Issue
Block a user