Don't collapse metadata for edited message
This commit is contained in:
parent
9054a78a65
commit
da09c72c99
1 changed files with 5 additions and 0 deletions
|
@ -37,6 +37,7 @@ export enum UnreadIndicatorPlacement {
|
|||
export type MessageTimelineItemDataType = Readonly<{
|
||||
author: { id: string };
|
||||
deletedForEveryone?: boolean;
|
||||
isEditedMessage?: boolean;
|
||||
reactions?: ReadonlyArray<unknown>;
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue