Merge branch 'krille/fix-open-uris' into 'main'
fix: Open URIs See merge request famedly/fluffychat!593
This commit is contained in:
commit
c9c4f2caf9
3 changed files with 17 additions and 12 deletions
|
|
@ -130,9 +130,9 @@ 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;
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
UrlLauncher(context, text).openMatrixToUrl();
|
||||
});
|
||||
}
|
||||
|
||||
void _initReceiveSharingIntent() {
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ class NewPrivateChatView extends StatelessWidget {
|
|||
decoration: InputDecoration(
|
||||
labelText: L10n.of(context).typeInInviteLinkManually,
|
||||
hintText: '@username',
|
||||
prefixText: 'https://matrix.to/#/',
|
||||
prefixText: 'matrix.to/#/',
|
||||
suffixIcon: IconButton(
|
||||
icon: const Icon(Icons.send_outlined),
|
||||
onPressed: controller.submitAction,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue