🗑️ Remove the chat role display in message
This commit is contained in:
@@ -77,27 +77,12 @@ class MessageSenderInfo extends StatelessWidget {
|
|||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Row(
|
AccountName(
|
||||||
children: [
|
account: sender.account,
|
||||||
AccountName(
|
style: Theme.of(context).textTheme.bodySmall?.copyWith(
|
||||||
account: sender.account,
|
color: textColor,
|
||||||
style: Theme.of(context).textTheme.bodySmall?.copyWith(
|
fontWeight: FontWeight.w500,
|
||||||
color: textColor,
|
),
|
||||||
fontWeight: FontWeight.w500,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
const SizedBox(width: 4),
|
|
||||||
Badge(
|
|
||||||
label:
|
|
||||||
Text(
|
|
||||||
sender.role >= 100
|
|
||||||
? 'permissionOwner'
|
|
||||||
: sender.role >= 50
|
|
||||||
? 'permissionModerator'
|
|
||||||
: 'permissionMember',
|
|
||||||
).tr(),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
timestamp,
|
timestamp,
|
||||||
|
|||||||
Reference in New Issue
Block a user