mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-28 17:12:33 +01:00
Merge branch 'krille/open-fluffychat-urls' into 'main'
Krille/open fluffychat urls See merge request famedly/fluffychat!564
This commit is contained in:
commit
d0e9c68827
@ -58,6 +58,12 @@
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
<data android:scheme="matrix" />
|
||||
</intent-filter>
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
<data android:scheme="im.fluffychat" />
|
||||
</intent-filter>
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.SEND" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
|
@ -35,6 +35,7 @@
|
||||
<array>
|
||||
<string>ShareMedia</string>
|
||||
<string>im.fluffychat</string>
|
||||
<string>matrix</string>
|
||||
</array>
|
||||
</dict>
|
||||
</array>
|
||||
|
@ -129,6 +129,7 @@ class ChatListController extends State<ChatList> {
|
||||
void _processIncomingUris(String text) async {
|
||||
if (text == null) return;
|
||||
VRouter.of(context).to('/rooms');
|
||||
text = text.replaceFirst('im.fluffychat://', 'matrix:');
|
||||
UrlLauncher(context, text).openMatrixToUrl();
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user