fix: UserBottomSheet

This commit is contained in:
Christian Pauly 2021-01-19 15:48:50 +01:00
commit fc4dafd8dc
3 changed files with 25 additions and 14 deletions

View file

@ -492,7 +492,8 @@ class _ChatState extends State<Chat> {
onTap: room.isDirectChat
? () => showModalBottomSheet(
context: context,
builder: (context) => UserBottomSheet(
builder: (c) => UserBottomSheet(
l10n: L10n.of(context),
user: room.getUserByMXIDSync(
room.directChatMatrixID),
onMention: () => sendController.text +=
@ -735,8 +736,9 @@ class _ChatState extends State<Chat> {
onAvatarTab: (Event event) =>
showModalBottomSheet(
context: context,
builder: (context) =>
builder: (c) =>
UserBottomSheet(
l10n: L10n.of(context),
user: event.sender,
onMention: () =>
sendController.text +=