verdnatura-chat/app/lib
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
..
database Chore: Update WatermelonDB to 0.23.0 (#3386) 2021-10-01 17:35:13 -03:00
encryption Chore: Start Typescript migration (#3279) 2021-09-13 17:41:05 -03:00
methods [IMPROVE] Check permission to create a room (#3233) 2021-10-05 10:59:40 -03:00
Icons.js Chore: Start Typescript migration (#3279) 2021-09-13 17:41:05 -03:00
Navigation.ts Chore: Start Typescript migration (#3279) 2021-09-13 17:41:05 -03:00
ShareNavigation.ts Chore: Start Typescript migration (#3279) 2021-09-13 17:41:05 -03:00
appStateMiddleware.js Chore: Start Typescript migration (#3279) 2021-09-13 17:41:05 -03:00
createStore.js Chore: Start Typescript migration (#3279) 2021-09-13 17:41:05 -03:00
rocketchat.js [IMPROVE] Check permission to create a room (#3233) 2021-10-05 10:59:40 -03:00
selection.json Chore: Start Typescript migration (#3279) 2021-09-13 17:41:05 -03:00
userPreferences.js [CHORE] Remove some migrations (#2792) 2021-01-14 14:06:38 -03:00
utils.js Chore: Start Typescript migration (#3279) 2021-09-13 17:41:05 -03:00