From d5af6297f5b0a80bcf86d057b5e599c178b088a2 Mon Sep 17 00:00:00 2001 From: Krille Fear Date: Sun, 21 Nov 2021 14:26:40 +0100 Subject: [PATCH] design: Display edit marker in new bubbles --- lib/pages/chat/events/message.dart | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/lib/pages/chat/events/message.dart b/lib/pages/chat/events/message.dart index 6579ad13..b924e0c3 100644 --- a/lib/pages/chat/events/message.dart +++ b/lib/pages/chat/events/message.dart @@ -218,6 +218,25 @@ class Message extends StatelessWidget { textColor: textColor, 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, + ), + ), + ], + ), ], ), ],