Don't collapse metadata for edited message

This commit is contained in:
Fedor Indutny 2023-04-20 11:56:34 -07:00 committed by GitHub
parent 9054a78a65
commit da09c72c99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;