feat: Nicer mentions

This commit is contained in:
Sorunome 2021-07-20 17:54:48 +02:00
commit 53bb9f3edd
2 changed files with 4 additions and 3 deletions

View file

@ -86,7 +86,7 @@ class ChatView extends StatelessWidget {
outerContext: context,
onMention: () => controller
.sendController.text +=
'${controller.room.directChatMatrixID} ',
'${controller.room.getUserByMXIDSync(controller.room.directChatMatrixID).mention} ',
),
)
: () => VRouter.of(context)
@ -376,7 +376,7 @@ class ChatView extends StatelessWidget {
onMention: () => controller
.sendController
.text +=
'${event.senderId} ',
'${event.sender.mention} ',
),
),
unfold: controller.unfold,