HomePhabricator
Diffusion Comm 932ab04c7dea

[lib] Add several permissions to threadPermissionsDisabledByBlock

Description

[lib] Add several permissions to threadPermissionsDisabledByBlock

Summary:
The other EDIT_THREAD_* permissions are there. I think it makes sense to include EDIT_THREAD_AVATAR as well.

This means that if user A blocks user B, then neither user will be able to change the thread avatar in chats that contain only those two users.

(EDIT_MESSAGE and REACT_TO_MESSAGE were also added after review.)

Depends on D13061

Test Plan: I made sure this change is safe by looking at where EDIT_THREAD_AVATAR is checked on the client. It happens in two places: once on native, and once on web. In both cases we use useThreadHasPermission, which is able to check the blocked status.

Reviewers: tomek, inka

Reviewed By: tomek

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

Details

Provenance
ashoatAuthored on Aug 13 2024, 7:45 AM
Reviewer
tomek
Differential Revision
D13067: [lib] Add several permissions to threadPermissionsDisabledByBlock
Parents
rCOMMf1ed5990ecef: [lib] Make sure community admins can always react and edit messages
Branches
Unknown
Tags
Unknown