fix: UserBottomSheet
This commit is contained in:
parent
cc38312409
commit
d53da50f38
4 changed files with 9 additions and 2 deletions
|
|
@ -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 +=
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue