Moved logic responsible for filtering menu items in thread members panel into shared function between mobile and web.
No logic changes has been made in the shared function itself.
Details
Details
In web app, action menu in members modal contains the same elements as before. In mobile app, in thread settings, the same members options are avaliable.
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
lib/shared/thread-utils.js | ||
---|---|---|
1327 ↗ | (On Diff #10598) | Can we use less general type (an enum)? |
1347 ↗ | (On Diff #10598) | |
native/chat/settings/thread-settings-member.react.js | ||
98 ↗ | (On Diff #10598) | In the new function we have one more condition here: threadHasAdminRole(threadInfo) - but this probably should be here from the beginning |