Show lightbox for GIFs

This commit is contained in:
Fedor Indutny 2021-07-14 16:39:52 -07:00 committed by GitHub
parent 62ab66c1c8
commit c3bdf3d411
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 790 additions and 815 deletions

View file

@ -716,6 +716,12 @@ export class Message extends React.Component<Props, State> {
tabIndex={0}
reducedMotion={reducedMotion}
onError={this.handleImageError}
showVisualAttachment={() => {
showVisualAttachment({
attachment: firstAttachment,
messageId: id,
});
}}
kickOffAttachmentDownload={() => {
kickOffAttachmentDownload({
attachment: firstAttachment,