HomePhabricator
Diffusion Comm a432a967f452

[lib] Handle a case where viewer is added to a thread while being its member

Description

[lib] Handle a case where viewer is added to a thread while being its member

Summary:
It is possible that we receive an operation about viewer being added to a thread while the thread is already present in the store and viewer is its member. We need to make sure that we don't override the whole thread and instead update it as little as possible.

https://linear.app/comm/issue/ENG-8720/add-protection-against-thick-thread-creation-overwriting-existing

Depends on D13483

Test Plan: Create a sidebar, add, remove, and add a user and check on that user's device if the thread is displayed and updated correctly.

Reviewers: kamil, will, ashoat

Reviewed By: ashoat

Subscribers: ashoat

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

Details

Provenance
tomekAuthored on Sep 26 2024, 4:16 AM
Reviewer
ashoat
Differential Revision
D13490: [lib] Handle a case where viewer is added to a thread while being its member
Parents
rCOMM23ee267213b4: [lib] Validate DM operations
Branches
Unknown
Tags
Unknown