HomePhabricator
Diffusion Comm 97d75c7931c6

[lib] Update `roleIsDefaultRole` to consider `roleInfo?.specialRole`

Description

[lib] Update roleIsDefaultRole to consider roleInfo?.specialRole

Summary:
Similar to D11148, but for specialRoles.DEFAULT_ROLE.


Depends on D11148

Test Plan:

  1. Hard code includeSpecialRoleFieldInRoles to true
  2. Check to see that specialRole field of roles are populated in ThreadStore
  3. Set a breakpoint and see that the branch is hit and function behaves as expected.

Reviewers: ginsu, tomek, michal, kamil

Reviewed By: tomek

Subscribers: ashoat

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

Details

Provenance
atulAuthored on Feb 27 2024, 9:27 AM
Reviewer
tomek
Differential Revision
D11149: [lib] Update `roleIsDefaultRole` to consider `roleInfo?.specialRole`
Parents
rCOMMc05d8f18fefe: [lib] Update `roleIsAdminRole` to consider `roleInfo?.specialRole`
Branches
Unknown
Tags
Unknown