From da09c72c9970f1beb44bf2c29dd55b56ff375683 Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Thu, 20 Apr 2023 11:56:34 -0700 Subject: [PATCH] Don't collapse metadata for edited message --- ts/util/timelineUtil.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ts/util/timelineUtil.ts b/ts/util/timelineUtil.ts index 87bea03d2e1c..24e0f65413ac 100644 --- a/ts/util/timelineUtil.ts +++ b/ts/util/timelineUtil.ts @@ -37,6 +37,7 @@ export enum UnreadIndicatorPlacement { export type MessageTimelineItemDataType = Readonly<{ author: { id: string }; deletedForEveryone?: boolean; + isEditedMessage?: boolean; reactions?: ReadonlyArray; status?: LastMessageStatus; timestamp: number; @@ -69,6 +70,10 @@ export function shouldCurrentMessageHideMetadata( return false; } + if (message.isEditedMessage) { + return false; + } + const newerMessage = getMessageTimelineItemData(newerTimelineItem); if (!newerMessage) { return false;