vn-verdnaturachat/app
Reinaldo Neto da6af286c6
[IMPROVE] Check permission to create a room (#3233)
* [IMPROVE] Check permission to create new message, channels, teams

* Show or not the button to create at RoomListView

* Check permission for each button inside NewMessageView

* Check permission to create private or public channel

* Minor tweak

* Refactor to create a function tuserHasRolePermission

* Refactor to use only one function at rocketchat to check the user permission

* Minor tweaks

* Reactive create channel

* reactive new message view, and handleHasPermission out of constructor

* handleHasPermission to didMount in roomListView

* remove console.log

* Call the function in componentDidMount

* Changed === to dequal, to check array

Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-10-05 10:59:40 -03:00
..
actions [IMPROVE] Onboarding changes (#3387) 2021-09-23 11:17:53 -03:00
constants [NEW] Canned responses (#3355) 2021-09-22 14:29:26 -03:00
containers [FIX] Toggle password visibility button not working (#3404) 2021-10-01 17:36:59 -03:00
definition [NEW] Create Team (#3082) 2021-05-12 16:01:29 -03:00
ee Chore: Start Typescript migration (#3279) 2021-09-13 17:41:05 -03:00
i18n [NEW] Canned responses (#3355) 2021-09-22 14:29:26 -03:00
lib [IMPROVE] Check permission to create a room (#3233) 2021-10-05 10:59:40 -03:00
notifications/push Chore: Start Typescript migration (#3279) 2021-09-13 17:41:05 -03:00
presentation Chore: Update Reanimated to 2.2.2 (#3341) 2021-10-01 17:34:25 -03:00
reducers [IMPROVE] Onboarding changes (#3387) 2021-09-23 11:17:53 -03:00
sagas [IMPROVE] Onboarding changes (#3387) 2021-09-23 11:17:53 -03:00
selectors Chore: Start Typescript migration (#3279) 2021-09-13 17:41:05 -03:00
stacks [IMPROVE] Onboarding changes (#3387) 2021-09-23 11:17:53 -03:00
static/images [FIX] ServerDropdown flashing bigger server icon (#2775) 2021-01-13 11:11:31 -03:00
utils [IMPROVE] Onboarding changes (#3387) 2021-09-23 11:17:53 -03:00
views [IMPROVE] Check permission to create a room (#3233) 2021-10-05 10:59:40 -03:00
AppContainer.tsx [IMPROVE] Onboarding changes (#3387) 2021-09-23 11:17:53 -03:00
ReactotronConfig.js Chore: Start Typescript migration (#3279) 2021-09-13 17:41:05 -03:00
commands.js Chore: Start Typescript migration (#3279) 2021-09-13 17:41:05 -03:00
dimensions.tsx Chore: Start Typescript migration (#3279) 2021-09-13 17:41:05 -03:00
emojis.ts Chore: Start Typescript migration (#3279) 2021-09-13 17:41:05 -03:00
externalModules.d.ts Chore: Start Typescript migration (#3279) 2021-09-13 17:41:05 -03:00
index.tsx Chore: Start Typescript migration (#3279) 2021-09-13 17:41:05 -03:00
share.tsx Chore: Start Typescript migration (#3279) 2021-09-13 17:41:05 -03:00
theme.tsx Chore: Start Typescript migration (#3279) 2021-09-13 17:41:05 -03:00