HomePhabricator
Diffusion Comm 5922947499f8

[lib] Remove `getCurrentUser`

Description

[lib] Remove getCurrentUser

Summary:
We needed getCurrentUser in order to "patch" permissions based on block. However, we're now considering filtered permissions as part of useThreadsWithPermission so we can handle blocks as part of permission check vs. RawThreadInfo -> ThreadInfo. This greatly simplifies deprecation of memberHasAdminPowers on the client.


Depends on D12154

Test Plan: flow + ensuring that useExistingThreadInfoFinder, threadInfoFromRawThreadInfo, etc. continue to work as expected.

Reviewers: ashoat, ginsu, tomek, varun

Reviewed By: ashoat

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

Details

Provenance
atulAuthored on Jun 12 2024, 2:13 PM
Reviewer
ashoat
Differential Revision
D12158: [lib] Remove `getCurrentUser`
Parents
rCOMM23c6aa4e6c09: [lib] assert function and setting client db with sqlite data
Branches
Unknown
Tags
Unknown