fix: UserBottomSheet

This commit is contained in:
Christian Pauly 2021-05-01 10:04:44 +02:00
commit d53da50f38
4 changed files with 9 additions and 2 deletions

View file

@ -81,6 +81,7 @@ class ChatUI extends StatelessWidget {
builder: (c) => UserBottomSheet(
user: controller.room.getUserByMXIDSync(
controller.room.directChatMatrixID),
outerContext: context,
onMention: () => controller
.sendController.text +=
'${controller.room.directChatMatrixID} ',
@ -379,6 +380,7 @@ class ChatUI extends StatelessWidget {
builder: (c) =>
UserBottomSheet(
user: event.sender,
outerContext: context,
onMention: () => controller
.sendController
.text +=

View file

@ -110,7 +110,8 @@ class UserBottomSheetUI extends StatelessWidget {
title: Text(L10n.of(context).username),
subtitle: Text(user.id),
trailing: Icon(Icons.share_outlined),
onTap: () => FluffyShare.share(user.id, context),
onTap: () => FluffyShare.share(
user.id, controller.widget.outerContext),
),
if (presence != null)
ListTile(