Commit Graph

1611 Commits

Author SHA1 Message Date
Gerzon Z 0a3bdb65bd Update index.tsx 2021-11-04 14:25:05 -04:00
AlexAlexandre 767637bdaf Merge branch 'develop' into new.add-discusions-roomactionsview 2021-11-01 19:06:40 -03:00
Diego Mello 0ca3dd63d1
Bump version to 4.22.0 (#3472) 2021-10-29 17:38:28 -03:00
Gerzon Z a1c8ce0c7f Minor tweak 2021-10-29 12:16:52 -04:00
Gerzon Z ffb17d603e Minor tweaks 2021-10-29 11:56:57 -04:00
Gerzon Z 47f7ee8c91
Merge branch 'develop' into new.add-discusions-roomactionsview 2021-10-27 10:42:17 -04:00
Diego Mello b2db7c8adf
[FIX] Different token types inside list items (#3458)
* Fix different token types inside list items

* Fixing more styles

* Update tests

Co-authored-by: Gerzon Z <gerzonc@icloud.com>
2021-10-27 10:13:20 -03:00
Diego Mello e0a0a31257
[FIX] Markdown not rendering as preview for threaded messages (#3465)
* Use older preview logic

* Stories
2021-10-27 10:09:09 -03:00
Gerzon Z e98caea40b
[FIX] WatermelonDB linking on iOS (#3450)
* unlink watermelondb

* Minor change on archs

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-10-26 13:35:29 -03:00
Reinaldo Neto 2ab1bacdb3
[NEW] Direct link to a threaded conversation (#3406)
* [FIX] deeplinking to thread

* fix how to find threadId

* tmid as route params jumpToThreaId

* minor tweak

* minor tweak on logic

* E2E Test

* minor tweak

* wait for the return of the thread

* Minor refactor

* Fix e2e tests for docker

* popToRoot when focused and there is a jumpToThread

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-10-26 13:11:50 -03:00
Reinaldo Neto 72d50887a4
[FIX] Cannot read property 'error' of undefined when creating a channel (#3437) 2021-10-26 10:40:46 -03:00
Gerzon Z 87a99089ce
[FIX] NewServerView skipping WorkspaceView (#3455)
* Initial commit

* Fix interface

* Unrequired change on onPress/onSubmit
2021-10-26 10:39:13 -03:00
lingohub[bot] 0a44731229
Language update from LingoHub 🤖 (#3460)
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>
2021-10-26 10:36:41 -03:00
Gerzon Z f911100c44 Fix lint 2021-10-20 18:28:09 -04:00
Gerzon Z 5dc0a0a05f Merge branch 'develop' into new.add-discusions-roomactionsview 2021-10-20 18:10:30 -04:00
Reinaldo Neto 27db881962
Chore: Migrate NewServerView to Typescript (#3431)
* Chore: Migrate NewServerView to Typescript

* fix one alert lgtm

* Item.tsx

* export interface and try to rewrite write instead action

* minor tweak

* minor tweak

* refactor: change the type of username to connectServer

* refactor scaling

* minor tweak

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
2021-10-20 15:04:15 -03:00
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
Gerzon Z 8e064a54e6 Fix lint 2021-10-13 17:12:02 -04:00
Gerzon Z 35d869df85 Update types and onCancelSearchPress 2021-10-13 17:09:50 -04:00
Gerzon Z 086d13b4ef Remove no-non-null-assertion 2021-10-13 11:59:16 -04:00
Gerzon Z 0242fb14f8 Fix en.json 2021-10-13 11:54:25 -04:00
Gerzon Z 714608cc36 Merge branch 'develop' into new.add-discusions-roomactionsview 2021-10-13 11:46:50 -04: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
Gerzon Z dcb79b18a4
Merge branch 'develop' into new.add-discusions-roomactionsview 2021-10-06 11:17:05 -04:00
Gerzon Z 1d40c3ba7e Update snapshots 2021-10-06 11:16:29 -04: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
Gerzon Z da7f954996
Merge branch 'develop' into new.add-discusions-roomactionsview 2021-10-05 14:37:34 -04:00
Gerzon Z a226cad57c Undo changes, add timeFormat prop 2021-10-05 12:00:00 -04: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
Gerzon Z 89a2381a1e test commit 2021-10-04 18:03:28 -04:00
Gerzon Z b48a189604 Update Storyshots.test.js.snap 2021-10-04 16:43:45 -04:00
Gerzon Z eedfd42162 Minor tweak 2021-10-04 13:19:01 -04:00