fix: Sharing invite link

This commit is contained in:
Christian Pauly 2021-08-23 08:40:01 +02:00
parent f9111b6bb3
commit 4b93382fb9
2 changed files with 2 additions and 3 deletions

View File

@ -71,8 +71,7 @@ class NewPrivateChatController extends State<NewPrivateChat> {
} }
void inviteAction() => FluffyShare.share( 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, context,
); );

View File

@ -56,10 +56,10 @@ class NewPrivateChatView extends StatelessWidget {
margin: EdgeInsets.all(_qrCodePadding), margin: EdgeInsets.all(_qrCodePadding),
alignment: Alignment.center, alignment: Alignment.center,
padding: EdgeInsets.all(_qrCodePadding * 2), padding: EdgeInsets.all(_qrCodePadding * 2),
color: Colors.white,
child: Material( child: Material(
borderRadius: BorderRadius.circular(12), borderRadius: BorderRadius.circular(12),
elevation: 4, elevation: 4,
color: Colors.white,
child: QrImage( child: QrImage(
data: data:
'https://matrix.to/#/${Matrix.of(context).client.userID}', 'https://matrix.to/#/${Matrix.of(context).client.userID}',