HomePhabricator
Diffusion Comm c6c65354ee64

[web] Refactor Mutlimedia to function component

Description

[web] Refactor Mutlimedia to function component

Summary: Refactor the <Multimedia> component to be a function component. This will make managing further thumbhash logic much easier.

Test Plan: Multimedia are still displayed as before (both in chat and input bar). Clicking on the message opens modal. Remove button in input bar works. URL revoking is tested by console.log and ensuring it's called once when the message is sent.

Reviewers: ashoat, atul, ginsu, inka

Reviewed By: ashoat

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D7899

Details

Provenance
bartekAuthored on May 21 2023, 6:03 AM
Reviewer
ashoat
Differential Revision
D7899: [web] Refactor Mutlimedia to function component
Parents
rCOMMad92458e922f: [web] Add missing thumbhash to newly created media message
Branches
Unknown
Tags
Unknown