fix: Last bits for the release
This commit is contained in:
parent
3d999b6ba0
commit
bfdc402a2b
6 changed files with 44 additions and 25 deletions
|
|
@ -235,7 +235,9 @@ class ChatListItem extends StatelessWidget {
|
|||
: Text(
|
||||
room.lastEvent?.getLocalizedBody(
|
||||
L10n.of(context),
|
||||
withSenderNamePrefix: !room.isDirectChat,
|
||||
withSenderNamePrefix: !room.isDirectChat ||
|
||||
room.lastEvent.senderId ==
|
||||
room.client.userID,
|
||||
hideReply: true,
|
||||
) ??
|
||||
'',
|
||||
|
|
|
|||
|
|
@ -13,20 +13,22 @@ class StateMessage extends StatelessWidget {
|
|||
padding: const EdgeInsets.only(
|
||||
left: 8.0,
|
||||
right: 8.0,
|
||||
bottom: 16.0,
|
||||
bottom: 8.0,
|
||||
),
|
||||
child: Container(
|
||||
alignment: Alignment.center,
|
||||
decoration: BoxDecoration(
|
||||
color: Theme.of(context).backgroundColor.withOpacity(0.66),
|
||||
borderRadius: BorderRadius.circular(7),
|
||||
),
|
||||
child: Text(
|
||||
event.getLocalizedBody(L10n.of(context)),
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).textTheme.bodyText2.color,
|
||||
decoration: event.redacted ? TextDecoration.lineThrough : null,
|
||||
child: Center(
|
||||
child: Container(
|
||||
padding: const EdgeInsets.all(4),
|
||||
decoration: BoxDecoration(
|
||||
color: Theme.of(context).backgroundColor.withOpacity(0.8),
|
||||
borderRadius: BorderRadius.circular(7),
|
||||
),
|
||||
child: Text(
|
||||
event.getLocalizedBody(L10n.of(context)),
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).textTheme.bodyText2.color,
|
||||
decoration: event.redacted ? TextDecoration.lineThrough : null,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue