Commit Graph

1546 Commits

Author SHA1 Message Date
Reinaldo Neto 744893fa31
Chore: Migrate AuthenticationWebView to Typescript (#3441)
* Chore: Migrate AuthenticationWebView to Typescript

* minor tweak

* added @types/url-parser
2021-10-20 15:00:35 -03:00
Gerzon Z 30a84a9292
Chore: Migrate SettingsView to TypeScript (#3430) 2021-10-20 14:56:52 -03:00
Gerzon Z 839645e42c
Chore: Migrate RegisterView to TypeScript (#3417)
* start migration to typescript

* update interface for RegisterView and TextInput

* Update types TextInput

* Minor tweak

* Update TextInput interface

* Minor change

* Update FormContainer.tsx

* Minor tweaks

* style: adding ts-ignore to fix later

* Minor tweak

* update storyshots

* Update TextInput interface

* Minor tweak

* Update snapshots

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-10-20 14:53:35 -03:00
Reinaldo Neto 7728997e3e
Chore: Migrate InviteUsersView to Typescript (#3426)
* Chore: Migrate InviteUsersView to ts

* minor tweaks

* minor tweak

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
2021-10-20 14:49:48 -03:00
Gerzon Z 9922fdd7e5
Chore: Migrate LoginView to TypeScript (#3423)
* Initial commit

* Update interface

* Minor tweaks

* Update FormContainer.tsx

* Minor tweaks

* update snapshots

* Update TextInput interface

* Update snapshots

* Merge branch 'develop' into chore.migrate-loginview-ts

* Minor tweak
2021-10-20 14:45:47 -03:00
William Reiske 467a1a5217
[IMPROVE] Pull down to refresh read receipts (#3427)
* [FEATURE] Pull down to refresh read receipts

This commit introduces a new feature to allow users to pull down to refresh read receipts.

* Support pull down to refresh when we renderEmpty

This adds support for the pull-down refresh to work when there are no read receipts yet.

* Removed extra new lines added while debugging.

* Minor polishing

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-10-20 14:02:55 -03:00
Reinaldo Neto 15ccb73f37
[NEW] Flow to resend email confirmation from mobile (#3439)
* [NEW] Flow to resend email confirmation from mobile

* Hooks

* theme

* minor tweak

* refactor: improving withTheme ts

* minor tweaks

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
2021-10-20 13:42:44 -03:00
Reinaldo Neto 42c69f0c06
[FIX] Make sure messages are loading properly (#3227)
* [FIX] Conditional to compare the server version and filter or not the system messages

* instead of lowerThanOrEqualTo using lowerThan

* To do a reactive message list

* minor tweaks

Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-10-20 13:35:28 -03:00
Reinaldo Neto 1889918875
[FIX] Disable swipe when room is not joined (#3319)
* [FIX] swipe when the user is joined and not when isn't

* Added a new conditional to check if is swipeble or not

* Minor tweaks

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-10-20 13:34:38 -03:00
Gerzon Z 76a99519ec
[NEW] Support new message parser (#3313)
* Add message parser to profile view and db

* Add md to db

* Remove changes to Xcode project

* Remove message-parser lib and add enable message parser field to User model

* Fix message parser

* Remove admin enableMessageParserEarlyAdoption

* Add NewMarkdown component

* Remove NewMarkdown component and add specific components for new message parser

* Add new parser components

* Fix BigEmoji

* Updated components and added more Code components

* update components and add storybooks

* Update Code component and add it to storybooks

* Update Mention component

* Minor tweaks

* Add server message parser validation

* Renamed folder, add @rocket.chat/message-parser, migrate some files to TypeScript

* Migrate components to TypeScript and fix styling

* Change interfaces and add TaskListComponent and styles

* Fix new markdown and styles

* Fix inlinecode

* Stop using server setting

* Use enableMessageParserEarlyAdoption on mapStateToProps

* Remove React.FC

* add link to bold, italic and strike

* Update parser components

* Fix missing components

* Minor tweak

* Fix lint and add getCustomEmojis

* Fix customEmojis

* Update emojis

* Minor tweak

* disconnect markdown from store

* Use @rocket.chat/message-parser@0.30.0

* Fix link style

* Unify lists and styles

* Remove style prop

* Use big emoji as a normal token

* Remove unnecessary memo

* Fix code styles

* Update tests

* Conditionally create renderer

* Use Context instead of prop drill

* Fix Link component

* Fix plain text regression and update tests

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-10-20 13:32:58 -03:00
Reinaldo Neto 2d392425ff
[FIX] Unnecessary navigation on server forced logout (#3428) 2021-10-14 16:38:32 -03:00
Alex Junior f5058a51c0
Chore: Update Expo libs (#3433)
* chore: update the libraries `expo-av` and `expo-keep-awake`

* chore: update the library `expo-file-system`

* chore: update the library `expo-haptics`

* chore: update the library `expo-local-authentication`

* chore: update the library `expo-video-thumbnails`

* chore: update the library `expo-web-browser`

* chore: update the library `expo-apple-authentication`

* chore: update the library `react-native-unimodules`
2021-10-14 16:37:29 -03:00
Alex Junior 8af82df7ff
[FIX] Reverting changes applied by Prettier on i18n folder (#3410)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-10-07 15:41:37 -03:00
Alex Junior dffa634beb
Chore: Remove eslint-config-airbnb (#3409)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-10-06 18:11:07 -03:00
Diego Mello 0af4c06c41
Bump version to 4.21.0 (#3432) 2021-10-06 17:59:10 -03:00
Reinaldo Neto fb71b60d54
Chore: Migrate LegalView to typescript (#3425)
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
2021-10-06 17:36:46 -03:00
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