Skip to content

Commit

Permalink
msglist [nfc]: Move message time definition into conditional it is us…
Browse files Browse the repository at this point in the history
…ed in
  • Loading branch information
sirpengi committed Jan 24, 2024
1 parent 089c2c9 commit 97f6678
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/widgets/message_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -852,11 +852,11 @@ class MessageWithPossibleSender extends StatelessWidget {
@override
Widget build(BuildContext context) {
final message = item.message;
final time = _kMessageTimestampFormat
.format(DateTime.fromMillisecondsSinceEpoch(1000 * message.timestamp));

Widget? senderRow;
if (item.showSender) {
final time = _kMessageTimestampFormat
.format(DateTime.fromMillisecondsSinceEpoch(1000 * message.timestamp));
senderRow = Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.baseline,
Expand Down

0 comments on commit 97f6678

Please sign in to comment.