mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 07:48:40 +00:00
always display edit icon when modified
This commit is contained in:
parent
f2bd80c2dc
commit
cb1ad9bdc7
1 changed files with 8 additions and 2 deletions
|
|
@ -89,7 +89,7 @@ class ChatTextEntry extends StatelessWidget {
|
|||
width: spacerWidth,
|
||||
),
|
||||
],
|
||||
if (displayTime)
|
||||
if (displayTime || message.modifiedAt != null)
|
||||
Align(
|
||||
alignment: AlignmentGeometry.centerRight,
|
||||
child: Padding(
|
||||
|
|
@ -108,8 +108,14 @@ class ChatTextEntry extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
),
|
||||
// if (displayTime)
|
||||
Text(
|
||||
friendlyTime(context, message.createdAt),
|
||||
friendlyTime(
|
||||
context,
|
||||
(message.modifiedAt != null)
|
||||
? message.modifiedAt!
|
||||
: message.createdAt,
|
||||
),
|
||||
style: TextStyle(
|
||||
fontSize: 10,
|
||||
color: Colors.white.withAlpha(150),
|
||||
|
|
|
|||
Loading…
Reference in a new issue