From 4b93382fb96d44303e4e85c01ebbf075a7e27111 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Mon, 23 Aug 2021 08:40:01 +0200 Subject: [PATCH] fix: Sharing invite link --- lib/pages/new_private_chat.dart | 3 +-- lib/pages/views/new_private_chat_view.dart | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/pages/new_private_chat.dart b/lib/pages/new_private_chat.dart index ecdb0f78..cd78f96b 100644 --- a/lib/pages/new_private_chat.dart +++ b/lib/pages/new_private_chat.dart @@ -71,8 +71,7 @@ class NewPrivateChatController extends State { } void inviteAction() => FluffyShare.share( - L10n.of(context).inviteText(Matrix.of(context).client.userID, - 'https://matrix.to/#/${Matrix.of(context).client.userID}'), + 'https://matrix.to/#/${Matrix.of(context).client.userID}', context, ); diff --git a/lib/pages/views/new_private_chat_view.dart b/lib/pages/views/new_private_chat_view.dart index fa5b6077..cc899dc5 100644 --- a/lib/pages/views/new_private_chat_view.dart +++ b/lib/pages/views/new_private_chat_view.dart @@ -56,10 +56,10 @@ class NewPrivateChatView extends StatelessWidget { margin: EdgeInsets.all(_qrCodePadding), alignment: Alignment.center, padding: EdgeInsets.all(_qrCodePadding * 2), - color: Colors.white, child: Material( borderRadius: BorderRadius.circular(12), elevation: 4, + color: Colors.white, child: QrImage( data: 'https://matrix.to/#/${Matrix.of(context).client.userID}',