HomePhabricator
Diffusion Comm 7ab6657dfa3c

[lib] Create holder ops for thick thread avatars

Description

[lib] Create holder ops for thick thread avatars

Summary:
Added blob holder operations when changing thick thread avatars.

We want to:

  • Always remove a holder if the old avatar was image
  • Establish holder if the new avatar is image. We want it only for inbound ops. For outbound, the holder is already established during image upload.

Depends on D13411

Test Plan:
Created a DM thread with two devices.

  • Set avatar to image on device A. Only device B generated op to establish holder.
  • Changed avatar to another image. Both devices generated op to remove avatar. Only inbound device established holder.
  • Reset avatar to emoji. Both devices removed their avatars

Reviewers: kamil, tomek

Reviewed By: kamil

Subscribers: ashoat

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

Details

Provenance
bartekAuthored on Fri, Sep 20, 6:07 AM
Reviewer
kamil
Differential Revision
D13413: [lib] Create holder ops for thick thread avatars
Parents
rCOMM1dea35865e35: [lib] Process blob holders in DM ops
Branches
Unknown
Tags
Unknown