Reactions: Fix buttons position in forwarded message (#1655)

This commit is contained in:
Alexander Zinchuk 2022-01-21 17:29:43 +01:00
parent e7912b1433
commit 417745a998

View File

@ -479,8 +479,11 @@ const Message: FC<OwnProps & StateProps> = ({
if (areReactionsInMeta) {
reactionsPosition = 'in-meta';
} else if (reactionMessage?.reactions && !areReactionsEmpty(reactionMessage.reactions)) {
if (asForwarded || customShape || ((photo || video || hasAnimatedEmoji) && !textParts)) {
if (customShape || ((photo || video || hasAnimatedEmoji) && !textParts)) {
reactionsPosition = 'outside';
} else if (asForwarded) {
metaPosition = 'standalone';
reactionsPosition = 'inside';
} else {
reactionsPosition = 'inside';
}