fix: Last bits for the release

This commit is contained in:
Christian Pauly 2020-09-21 19:21:24 +02:00
commit bfdc402a2b
6 changed files with 44 additions and 25 deletions

View file

@ -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,
) ??
'',

View file

@ -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,
),
),
),
),