* [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>
* [FIX] Pagination in SearchMessage through the javascript
* Minor tweak
* Remove unnecessary state update
* Fix inconsistent value update
* Minor change
* Fixed searchMessages to work with new value of count
* minor tweak
* minor tweak
* minor tweak
* Fix encrypted search
* Added Offset to lib/rocketchat and fixed the search
* fixed the debounce in search message view
* Needed to compare server version to lower than 3.17.0
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
* [FIX] Fetch members on RoomMembersView
* needed to add a conditional to the response
* result back properly from rocketchat lib
Co-authored-by: Diego Mello <diegolmello@gmail.com>
- Change the first screen of the app
- Minor changes on NewServerView and make it the first screen of the app
- Add "Create workspace" to ServerDropdown
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [improve] - migrate the view: DirectoryView to typescript
* [improve] - migrate the view: removing unnecessary variables
* minor changes
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* Resolve issue causing black screen when sharing
* Add logEvent to error in local authenticate
* minor tweak
* Revert changes
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>