From a090e93f57e3578b73af32a257c3e5e078300749 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 23 Nov 2025 12:56:02 +0800 Subject: [PATCH] :wastebasket: Remove the chat role display in message --- lib/widgets/chat/message_sender_info.dart | 27 +++++------------------ 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/lib/widgets/chat/message_sender_info.dart b/lib/widgets/chat/message_sender_info.dart index 30272c99..eaf4a9ab 100644 --- a/lib/widgets/chat/message_sender_info.dart +++ b/lib/widgets/chat/message_sender_info.dart @@ -77,27 +77,12 @@ class MessageSenderInfo extends StatelessWidget { child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - Row( - children: [ - AccountName( - account: sender.account, - style: Theme.of(context).textTheme.bodySmall?.copyWith( - color: textColor, - fontWeight: FontWeight.w500, - ), - ), - const SizedBox(width: 4), - Badge( - label: - Text( - sender.role >= 100 - ? 'permissionOwner' - : sender.role >= 50 - ? 'permissionModerator' - : 'permissionMember', - ).tr(), - ), - ], + AccountName( + account: sender.account, + style: Theme.of(context).textTheme.bodySmall?.copyWith( + color: textColor, + fontWeight: FontWeight.w500, + ), ), Text( timestamp,