File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -84,10 +84,10 @@ const AttachmentWithContext = <
8484 return < FileAttachment attachment = { attachment } /> ;
8585 }
8686
87- if ( attachment . type === 'video' && attachment . asset_url && attachment . image_url ) {
87+ if ( attachment . type === 'video' && attachment . asset_url ) {
8888 return (
8989 // TODO: Put in video component
90- < Card { ... attachment } />
90+ < FileAttachment attachment = { attachment } />
9191 ) ;
9292 }
9393
Original file line number Diff line number Diff line change @@ -468,7 +468,7 @@ const MessageWithContext = <
468468 ! message . deleted_at && Array . isArray ( message . attachments )
469469 ? message . attachments . reduce (
470470 ( acc , cur ) => {
471- if ( cur . type === 'file' ) {
471+ if ( cur . type === 'file' || cur . type === 'video' ) {
472472 acc . files . push ( cur ) ;
473473 acc . other = [ ] ; // remove other attachments if a file exists
474474 } else if ( cur . type === 'image' && ! cur . title_link && ! cur . og_scrape_url ) {
You can’t perform that action at this time.
0 commit comments