Merge branch 'krille/edits' into 'main'

design: Display edit marker in new bubbles

See merge request famedly/fluffychat!566
This commit is contained in:
Krille Fear 2021-11-21 13:45:03 +00:00
commit e25c7d5b6f

View File

@ -218,6 +218,25 @@ class Message extends StatelessWidget {
textColor: textColor, textColor: textColor,
onInfoTab: onInfoTab, onInfoTab: onInfoTab,
), ),
if (event.hasAggregatedEvents(
timeline, RelationshipTypes.edit))
Row(
mainAxisSize: MainAxisSize.min,
children: [
Icon(
Icons.edit_outlined,
color: textColor.withAlpha(164),
size: 14,
),
Text(
' - ${displayEvent.originServerTs.localizedTimeShort(context)}',
style: TextStyle(
color: textColor.withAlpha(164),
fontSize: 12,
),
),
],
),
], ],
), ),
], ],