fix(MessageView): Show header when prev message is system PinnedMessage

This commit is contained in:
Igor Sirotin 2023-05-15 15:19:37 +03:00 committed by Iuri Matias
parent ad8f749289
commit 68065f1c6c
1 changed files with 1 additions and 0 deletions

View File

@ -490,6 +490,7 @@ Loader {
showHeader: root.shouldRepeatHeader || dateGroupLabel.visible || isAReply || showHeader: root.shouldRepeatHeader || dateGroupLabel.visible || isAReply ||
root.prevMessageContentType === Constants.messageContentType.systemMessagePrivateGroupType || root.prevMessageContentType === Constants.messageContentType.systemMessagePrivateGroupType ||
root.prevMessageContentType === Constants.messageContentType.systemMessagePinnedMessage ||
root.senderId !== root.prevMessageSenderId root.senderId !== root.prevMessageSenderId
isActiveMessage: d.isMessageActive isActiveMessage: d.isMessageActive
topPadding: showHeader ? Style.current.halfPadding : 0 topPadding: showHeader ? Style.current.halfPadding : 0