Commit Graph

1530 Commits

Author SHA1 Message Date
Alex Junior ada2aed90b
Chore: Update Android SDK TARGET to 30 (#3363) 2021-10-06 17:35:19 -03:00
Reinaldo Neto 27dd007874
[NEW] Display preferences screen (#3318)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
2021-10-06 17:30:10 -03:00
Reinaldo Neto aba0e49194
Chore: Migrate WorkspaceView to Typescript (#3416)
* [CHORE] WorkspaceView migration to Typescript

* minor tweak
2021-10-05 17:48:04 -03:00
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
Reinaldo Neto 2a19054bf6
[IMPROVE] Add pagination to search messages (#3212)
* [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>
2021-10-05 10:58:21 -03:00
Reinaldo Neto 62562ebba9
Chore: Migrate AuthLoadingView to Typescript (#3424)
* chore: Migrate AuthLoadingView from js to tsx

* minor tweak
2021-10-05 10:54:08 -03:00
Reinaldo Neto d19f1245e6
[FIX] Searching for Online and All users for server's version less than 3.16.0 (#3407)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-10-01 17:37:50 -03:00
Reinaldo Neto 8916a195a8
[FIX] Toggle password visibility button not working (#3404)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-10-01 17:36:59 -03:00
Diego Mello 8de6adcf79
Chore: Update WatermelonDB to 0.23.0 (#3386) 2021-10-01 17:35:13 -03:00
Gerzon Z f196a7afaf
Chore: Update Reanimated to 2.2.2 (#3341)
* Update reanimated to 2.2.0

* Podfile and Manifest

* Update MainApplication.java

* Merge develop to branch

* Update yarn.lock

* Run yarn

* Other fixes

* Fix for Android build https://github.com/software-mansion/react-native-reanimated/issues/2412#issuecomment-917958173

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-10-01 17:34:25 -03:00
Reinaldo Neto 5bb5d54327
[FIX] Fetch members on RoomMembersView (#3403)
* [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>
2021-09-28 16:34:14 -03:00
Reinaldo Neto c5df938768
[FIX] Room Actions buttons not showing after taking a channel from Omnichannel Queue (#3399)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-09-28 16:33:25 -03:00
Reinaldo Neto 80d14037be
[FIX] Canned Responses minor fixes (#3400)
* fix onChangeText usedCanned on tablet

* removed refreshControl

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-09-28 16:25:20 -03:00
Debdut Chakraborty d9dcd2db76
Chore: Point to new white label URL (#3402) 2021-09-24 11:26:22 -03:00
Reinaldo Neto d2544a79c8
[IMPROVE] Onboarding changes (#3387)
- 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>
2021-09-23 11:17:53 -03:00
Diego Mello 30aab71db1
[FIX] Preserve voice message if recording is interrupted (#3397)
* 7c25909671

* Minor changes

Co-authored-by: Marco Jakobs <mj@jacotec.de>
2021-09-23 09:16:23 -03:00
Reinaldo Neto a52199a49c
[NEW] Canned responses (#3355)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-09-22 14:29:26 -03:00
Gerzon Z 0871849de8
[IMPROVE] Voice messages improvements (#3385)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Marco Jacotec <mj@jacotec.de>
2021-09-21 11:47:00 -03:00
lingohub[bot] 4eb42d70b9
Language update from LingoHub 🤖 (#3374)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub

Easy language translations with LingoHub 🚀

Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-09-17 09:48:49 -03:00
Gerzon Z 4f241b32d0
[IMPROVE] Fetch members from API endpoint (#3351)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-09-16 13:26:05 -03:00
Alex Junior 5bc74c6c68
Chore: Migrate DirectoryView to Typescript (#3379)
* [improve] - migrate the view: DirectoryView to typescript

* [improve] - migrate the view: removing unnecessary variables

* minor changes

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-09-15 17:37:21 -03:00
Alex Junior 308be2d2f4
Chore: Migrate CreateDiscussionView to Typescript (#3378)
* [improve] - migrate the view: CreateDiscussionView to typescript

* minor changes

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-09-15 16:58:14 -03:00
Diego Mello 9ed6a3ee5a
Fix: @rocketchat/sdk not fetching correct commit (#3384)
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
2021-09-15 11:56:56 -03:00
Alex Junior 212d7baea0
Chore: Migrate AutoTranslateView to Typescript (#3380)
* [improve] - migrate the view: AutoTranslateView to typescript

* TODO -> TODO:

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-09-15 11:38:51 -03:00
Alex Junior 93d734bfa9
Chore: Migrate AdminPanelView to Typescript (#3377)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-09-15 10:18:53 -03:00
Diego Mello b59fa0f199
Chore: Remove CocoaPods folder (#3381) 2021-09-14 17:46:26 -03:00
Diego Mello 201b84e6e2
Fix: lint-staged not working properly(#3382) 2021-09-14 17:22:26 -03:00
Chris Price 28d7a1bab2
[FIX] Black screen on share extension if lock screen is enabled (#3320)
* 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>
2021-09-14 15:31:36 -03:00
Diego Sampaio b795d4b013
[IMPROVE] Show full image when available (#3370)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
2021-09-14 13:11:26 -03:00
Alex Junior 69a67ea998
Chore: Start Typescript migration (#3279) 2021-09-13 17:41:05 -03:00
Diego Mello 9c526b753e
Bump version to 4.20.0 (#3366) 2021-09-03 15:01:43 -03:00
Diego Mello 2c31fc2b84
Chore: Update Jitsi to 3.6.0 (#3292)
* Fix RN deps

* Update react-native-jitsi-meet

* Working on iOS from Jitsi source

* Dependencies installed

* Temp android

* Kinda working android

* Working on iOS with our SDK

* Use our maven repo

* Fix temp maven url

* Cleanup

* Fix maven url

* Bring chat back

* Add activity indicator

* Update react-native-jitsi-meet

* Fix loading on iOS

* Clear gradle cache

* Try 3.6.0

* Dummy change to update gradle cache

* Point to merged forks

* update pod commit
2021-08-30 11:27:02 -03:00
Gerzon Z f5bbdb85cf
[FIX] TextInput breaking line (#2873)
* Update TextInput's padding

* Chante textAlign to auto and to ellipses longer text than the width

* Added story with changes in text input

* Changed in TextInput stories

Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-08-27 17:03:59 -03:00
Gerzon Z 0a55467858
Regression: Orientation lock on Android not working (#3345)
* Update MainApplication.java

* Update MainApplication.java

* Downgrade react-native-orientation-locker

* Pods

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-08-27 16:56:48 -03:00
Reinaldo Neto 666943a698
[FIX] E2E Encryption button doesn't appear (#3343)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-08-27 15:49:26 -03:00
Reinaldo Neto f838825644
[FIX] Evaluate values in handle failure (#3235)
* [FIX] HEvaluating proper the error for channel, team and undefined

* Added some team errors in i18n

* Added unauthorized to i18n

* Test if there is channel name too, to prevent to show {missing roomName}

* Refactor the treatment error to check if exists before translate with i18n

* Remove some check conditional points

* Minor tweak

* Added array with error inside the createChannel

* Moved error array to inside the handleFailure

* added creating_discussion

Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-08-27 13:34:38 -03:00
Reinaldo Neto 8b35f5c2b2
[FIX] The unread section is not removed after receiving a new message and swipe to read (#3281)
* Fix unread section from direct messages and thread messages

* Minor tweak

* removed the thread unread, but the thread unread is on branch fix.unread-thread-from-listview

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-08-27 13:33:29 -03:00
Sumukha Hegde 9bfe0e9912
[FIX] Show button attachment on messages (#2980)
* [FIX] Show button attachment in message list

fixes: #2684

* Changed the Button and theme, text theme and how to call the function

* Fix the props passed in Message

* Function to context

* Added button attachment to stories

* New snapshot

Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-08-27 13:29:34 -03:00
Sumukha Hegde 0d528bd9ae
[FIX] Show thumbnails in message view (#2975)
* [FIX] Show thumbnails in message view

fixes: #2853

* Add stories for thumbnails and update test

* [Test] Update tests

* added stories

Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-08-27 11:07:16 -03:00
Reinaldo Neto 7cd19b6a29
[FIX] Bugsnag and Analytics opt-out (#3335)
* Deleted redux actions for bugsnag and analytics, in addition fixed to eon/off reports for both

* Removed console.log

* minor tweak

* Enable and disable crashlytics and remove breadcrumb from bugsnag

* minor tweaks with the names of the variables

* minor tweak

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-08-23 11:15:01 -03:00
Reinaldo Neto 36ac646495
[FIX] Dealing well with pre-configured tags in Omnichannel (#3298)
* [FIX] Permissions to edit livechat

* [FIX] Tags with multiselect and tagParamsSelected

* Removed console.log and the new set to filter

* Added the permission to edit livechat room custom fields

* Change Title Livechat_edit to Edit

* Added marginBottom to multiSelect

* Added marginBottom to multiSelect

Co-authored-by: Gerzon Z <gerzonc@icloud.com>
2021-08-23 11:08:45 -03:00
Reinaldo Neto 5c6b4633bc
[FIX] Wrong message when room is closed by the Guest (#3289)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-08-23 10:45:02 -03:00
Reinaldo Neto 77f2960dbd
[FIX] Omnichannel custom fields are not rendered properly (#3295)
* [FIX] Permissions to edit livechat

* [FIX] Custom fields labels and values

* refactor field

* Added the permission to edit livechat room custom fields

* Fix the inputs.focus()

Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-08-23 10:43:51 -03:00
Reinaldo Neto bea88afca7
[FIX] Reactive footer when agents take chats (#3288)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-08-23 10:43:09 -03:00
Reinaldo Neto 8f1036f57e
[FIX] Permissions to edit livechat when the user is a livechat-agent (#3294)
* [FIX] Permissions to edit livechat

* Added the permission to edit livechat room custom fields

Co-authored-by: Levy Costa <levycosta471@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-08-23 10:42:09 -03:00
Diego Mello 8e3b79ed7c
[FIX] Share extension not working on iOS (#3310)
* Temp add all pods to share extension

* Cleanup
2021-08-20 16:54:59 -03:00
Reinaldo Neto 14fd12ce64
[FIX] Hardcoded backdrop opacity on loading component (#3255)
* Added withTheme and themes to Loading

* Added animation to backdrop opacity

* Minor tweak

* Fix internal image impacted by opacity

Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
2021-08-16 18:14:56 -03:00
Reinaldo Neto 1c43c78cf4
[FIX] Unarchive permission not honored (#3237)
* [FIX] Show alert when unarchive error

* Title in alert

* Disable button when the user donesn't have the role permission

* Use ARCHIVE/UNARCHIVE instead of their lowercase in alert and removed capitalize lodash

* Check if the error eis translated before parse through i18n

* Remove unnecessary code

Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Levy Costa <levycosta471@gmail.com>
2021-08-16 18:08:34 -03:00
lingohub[bot] 49f936bf1c
Language update from LingoHub 🤖 (#3297)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub

Easy language translations with LingoHub 🚀

Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-07-28 17:44:53 -03:00
Diego Mello fb0a4ed266
Chore: Update Bugsnag (#3300)
* Remove bugsnag-react-native

* Really remove bugsnag from android

* Install @bugsnag/react-native

* Logging error on Android correctly

* Cleanup

* Fix bugsnag mock

* iOS builds

* Fix CI mistake

* Upload dSYMs to Bugsnag

* Upload source maps automatically on iOS

* Cleanup

* Enable Bugsnag on share extension

* Add test error

* Use large macos

* Bump to 4.19.0 temporarily to test on TestFlight official

* Use temp keys

* Fix upload source maps for Official iOS build

* Remove tests

* Set version back to 4.18.0
2021-07-28 17:36:06 -03:00