HomePhabricator
Diffusion Comm 580b6451cbab

[lib] Tighten utils type to contain only thick threads

Description

[lib] Tighten utils type to contain only thick threads

Summary:
It is inconvenient to have the assertions in a lot of places - the issue would become a lot worse after the rest of the stack.

This diff introduces a new risk - an attacker can create a new thread with the same ID as an existing thin thread. Not sure how useful this attack could be. Protecting against it is handled in https://linear.app/comm/issue/ENG-9468/introduce-additional-validation-of-operations.

https://linear.app/comm/issue/ENG-9823/fix-sending-notifs-about-leaving-a-thick-thread

Depends on D13698

Test Plan: Flow

Reviewers: kamil, angelika

Reviewed By: kamil

Subscribers: ashoat

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

Details

Provenance
tomekAuthored on Tue, Oct 29, 8:49 AM
Reviewer
kamil
Differential Revision
D13842: [lib] Tighten utils type to contain only thick threads
Parents
rCOMMf9423b4ea946: [lib] Use the actions queue in the peer to peer context
Branches
Unknown
Tags
Unknown