Message: If collapsed in group, remove top margin on link previews

This commit is contained in:
Scott Nonnenberg 2022-06-13 14:29:10 -07:00 committed by GitHub
parent 410bc52fd0
commit e18510e41c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 1009 additions and 1185 deletions

View file

@ -1147,7 +1147,9 @@ export class Message extends React.PureComponent<Props, State> {
const withContentAbove =
Boolean(quote) ||
(conversationType === 'group' && direction === 'incoming');
(!shouldCollapseAbove &&
conversationType === 'group' &&
direction === 'incoming');
const previewHasImage = isImageAttachment(first.image);
const isFullSizeImage = shouldUseFullSizeLinkPreviewImage(first);