[lib] Update filterThreadPermissions to handle EDIT_THREAD_AVATAR
Summary:
We're going to exclude EDIT_THREAD_AVATAR permission from all clients for now. We'll add hasMinCodeVersion check once we have a native release with thread avatar editing enabled.
Depends on D7363 and shows how it can be extended to handle new permissions fairly easily.
Test Plan:
- Set breakpoint before filter serverMember.permissions and see that it includes `EDIT_THREAD_AVATAR:
- Set breakpoint after and see that memberPermissions is missing thread_edit_avatar permission:
- Set filterThreadEditAvatarPermission to false and ensure that edit_thread_avatar is included in threadInfos[123].members[456].permissions after logging on:
(second field from bottom)
- Set filterThreadEditAvatarPermission back to true and ensure that edit_thread_avatar is not included in threadInfos[123].members[456].permissions after logging on:
Reviewers: ashoat, ginsu, rohan
Reviewed By: ashoat, rohan
Subscribers: rohan, tomek
Differential Revision: https://phab.comm.dev/D7364