Commit Graph

2388 Commits

Author SHA1 Message Date
Reinaldo Neto b21d044f13
Chore: Migrate REST API - spotlight to Typescript ()
* Chore: Migrate REST API - spotlight to Typescript

* minor tweak
2022-03-07 12:16:20 -03:00
Alex Junior d43da089bf
Chore: Migrate REST API - setUserStatus to Typescript ()
* chore: add rest api return

* chore: add rest api return
2022-03-07 12:00:39 -03:00
Alex Junior c72b524ac0
chore: add rest api return () 2022-03-07 11:47:06 -03:00
Alex Junior ec7538abfd
chore: add rest api return () 2022-03-07 11:08:45 -03:00
Gleidson Daniel Silva 1ef9f57f3d
Chore: Migrate REST API - hideRoom to Typescript () 2022-03-07 09:57:57 -03:00
Gleidson Daniel Silva 82439159a5
Chore: Migrate REST API - removeUserFromRoom to Typescript () 2022-03-07 09:44:11 -03:00
Gleidson Daniel Silva 256bf0eaee
Chore: Migrate REST API - deleteRoom to Typescript () 2022-03-07 09:33:58 -03:00
Gleidson Daniel Silva 892e919768
Chore: Migrate REST API - leaveRoom to Typescript ()
* chore: add rest api type

* remove any
2022-03-07 09:20:12 -03:00
Gleidson Daniel Silva 58418fc5c2
Chore: Delete unused function getUserRoles () 2022-03-07 09:03:51 -03:00
Alex Junior a9f074d20a
chore: add rest api return () 2022-03-05 00:40:41 -03:00
Alex Junior f69ef6e59b
chore: add rest api return () 2022-03-05 00:28:36 -03:00
Alex Junior 70c15343e8
chore: add rest api return () 2022-03-05 00:17:24 -03:00
Alex Junior 4989e6cb5c
chore: add rest api return () 2022-03-05 00:08:26 -03:00
Alex Junior 0444e9b846
Chore: Migrate REST API - updateJitsiTimeout to Typescript ()
* chore: add rest api return

* chore: add rest api return
2022-03-04 23:29:12 -03:00
Gleidson Daniel Silva cbb1d0f3cf
Chore: Migrate REST API - forgotPassword to Typescript () 2022-03-04 11:18:06 -03:00
Gleidson Daniel Silva 9265dc345d
Chore: Migrate REST API - updateGroupKey to Typescript () 2022-03-04 11:08:36 -03:00
Gleidson Daniel Silva 4bd9dc0e09
Chore: Migrate REST API - removeTeamRoom to Typescript () 2022-03-04 11:00:17 -03:00
Gleidson Daniel Silva 2e95a3c9a7
Chore: Migrate REST API - e2eSetRoomKeyID to Typescript () 2022-03-04 10:51:39 -03:00
Gleidson Daniel Silva a7ecc1e427
Chore: Migrate REST API - toggleRead to Typescript () 2022-03-04 10:38:05 -03:00
Alex Junior c6824e7fcf
Chore: Migrate REST API - merge v1/user in v1/users () 2022-03-04 10:18:07 -03:00
Reinaldo Neto 4c490576fa
Chore: Migrate REST API - e2eRequestSubscriptionKeys to Typescript () 2022-03-03 23:12:36 -03:00
Alex Junior 3a7ec74e5a
Chore: Migrate subscriptions/room to TS ()
* chore: initial commit

* chore: fix readMessages

* chore: removing some `any`

* chore: removing some `any`

* chore: removing some `any`

* chore: fix erros after merge develop inside this branch

* chore: minor tweak

* chore: applying changes requested

* minor tweak

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-03-03 21:49:20 -03:00
Alex Junior 765e526bbf
Chore: Migrate subscriptions/rooms to TS ()
* chore: migrate subscriptions rooms to ts

* chore: adding a TODO to remember this problem

* chore: removing unnecessary todos

* chore: minor tweak after develop updates

* chore: migrate message service to ts

* chore: minor tweaks

* chore: minor tweak

* chore: minor tweak after merge develop into this branch

* chore: minor tweak after merge with dev

* minor tweak
2022-03-03 21:23:11 -03:00
Alex Junior dff60b6703
Fix: fix the command to run detox on android ()
* fix the command to run detox on android ()
2022-03-03 20:42:32 -03:00
Reinaldo Neto cbfa7bf43a
Chore: Migrate RoomInfoView to Typescript ()
* Chore: Migrate RoomInfoView to Typescript

* tweak in avatar

* tweak with SubscriptionType

* minor tweak package

* Chore: Migrate RoomInfoView to Typescript

* tweak in avatar

* tweak with SubscriptionType

* minor tweak package

* react.reactelement | null

* minor tweak

* minor tweak livechatvisitor

* remove console.log

* Tweaks
2022-03-03 18:46:53 -03:00
Reinaldo Neto b06be5a2ac
Chore: Migrate methods/loadSurroundingMessages to Typescript ()
* Chore: Migrate methods/loadSurroundingMessages to Typescript

* tweaks

* tweak

* tweak

* tweaks to make ts happy

* instead as IMessage is optional u

* enum to MessageTypeLoad

* minor tweaks
2022-03-03 17:25:03 -03:00
Reinaldo Neto 16fd64b260
Chore: Migrate REST API - saveRoomSettings to Typescript () 2022-03-03 15:15:06 -03:00
Reinaldo Neto 9751cc4426
Chore: Migrate REST API - toggleBlockUser to Typescript () 2022-03-03 14:52:00 -03:00
Gerzon Z 399cdac452
Chore: Migrate REST API - teamListRoomsOfUser to TS ()
* migrate REST API `teams.listRoomsOfUser` to TypeScript

* update: `rooms` type on `teams.listRoomsOfUser`

* update: if-conditionals on `RoomActionsView`
2022-03-03 00:58:14 -04:00
Alex Junior 214cf52cf9
Chore: Server API types - teams.updateRoom ()
* chore: type the API call `teams.updateRoom`

* chore: creating the interface `IServerTeamUpdateRoom`

* chore: minor tweak after merge
2022-03-02 23:22:59 -03:00
Alex Junior 7de686b0e8
Chore: Server API types - user.setPreferences ()
* chore: implementing type for test api - user.setPreferences

* chore: minor tweak
2022-03-02 22:53:44 -03:00
Gerzon Z 4ba7f16b71
Chore: Migrate REST API - deleteMessage to TS ()
* Migrate REST API `chats.delete` to TypeScript
2022-03-02 17:45:05 -04:00
Gerzon Z e8a80d391b
Chore: Migrate REST API - convertTeamToChannel to TS ()
* Migrate REST API `teams.convertToChannel` to TypeScript
2022-03-02 17:29:30 -04:00
Reinaldo Neto af3a6c5da1
Chore: Migrate REST API - toggleArchiveRoom to Typescript ()
* Chore: Migrate REST API - toggleArchiveRoom to Typescript

* minor tweak

* removed success param

* minor tweak
2022-03-02 18:19:07 -03:00
Gerzon Z 718ae48e83
Chore: Migrate REST API - removeTeamMember to TS ()
* Migrate REST API `teams.removeMember` to TypeScript
2022-03-02 16:39:04 -04:00
Gerzon Z 270f6e0fef
Chore: Migrate REST API - addRoomsToTeam to TS ()
* Migrate REST API `teams.addRooms` to TypeScript
2022-03-02 16:28:58 -04:00
Gerzon Z 1da4f01dcb
Chore: Migrate REST API - createTeam to TS ()
* Migrate `teams.create` REST API to TypeScript
2022-03-02 16:17:42 -04:00
Gerzon Z 529c9f0b00
Chore: Migrate REST API - register to TS ()
* Migrate `user.register` to TypeScript
2022-03-02 16:08:56 -04:00
Reinaldo Neto d506de9f23
Chore: Migrate REST API - e2eGetUsersOfRoomWithoutKey to Typescript ()
* Chore: Migrate REST API - e2eGetUsersOfRoomWithoutKey to Typescript

* Update app/definitions/rest/v1/e2e.ts

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-03-02 16:53:41 -03:00
Reinaldo Neto 79f585a361
Chore: Migrate REST API - createChannel to Typescript ()
* Chore: Migrate REST API - createChannel  to Typescript

* removed success

* iserverroomitem
2022-03-02 16:40:27 -03:00
Reinaldo Neto 0521c291f2
Chore: Migrate REST API - getRoutingConfig to Typescript ()
* Chore: Migrate REST API - getRoutingConfig to Typescript

* minor tweak
2022-03-02 16:32:11 -03:00
Reinaldo Neto 1c5f8b1731
Chore: Migrate REST API - sendConfirmationEmail to Typescript () 2022-03-02 16:19:34 -03:00
Reinaldo Neto cb8d4be7eb
Chore: Migrate REST API - getDepartmentInfo to Typescript () 2022-03-02 16:00:51 -03:00
Gerzon Z c5023eaeea
Chore: Migrate REST API - convertChannelToTeam to TS ()
* migrate channels.convertToTeam and groups.convertToTeam to ts

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-03-02 13:44:42 -04:00
Gerzon Z 71b184d38a
Chore: Migrate REST API - markAsUnread to TS ()
* Migrate `subscriptions.unread` to typescript
2022-03-02 13:06:30 -04:00
Diego Mello ea357de74a
Bump version to 4.26.0 () 2022-03-02 13:22:17 -03:00
Gerzon Z 5f92a509d1
Chore: Migrate loadThreadMessages to TS ()
* Migrate loadThreadMessages to TypeScript
* Update interfaces
2022-03-02 11:41:15 -04:00
Diego Mello 6626510f50
Chore: Migrate RoomActionsView to Typescript () 2022-03-02 11:49:43 -03:00
Diego Mello 6b3730ce43
Chore: Migrate RoomView to Typescript () 2022-03-02 11:18:01 -03:00
Diego Mello fc9e9a4f2a
Merge 4.25.0 into single-server ()
* Chore: Migrate DefaultBrowserView to Typescript ()

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>

* Chore: Migrate PickerView to Typescript ()

Co-authored-by: Diego Mello <diegolmello@gmail.com>

* Chore: Migrate AttachmentView to Typescript ()

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>

* Chore: Migrate MarkdownTableView to Typescript ()

Co-authored-by: Diego Mello <diegolmello@gmail.com>

* Chore: Migrate E2EEncryptionSecurityView to Typescript ()

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>

* Chore: Migrate E2EEnterYourPasswordView to Typescript ()

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>

* Chore: Migrate E2EHowItWorksView to Typescript ()

Co-authored-by: Diego Mello <diegolmello@gmail.com>

* Chore: Migrate E2ESaveYourPasswordView to Typescript ()

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>

* Chore: Migrate ForgotPasswordView to Typescript ()

Co-authored-by: Diego Mello <diegolmello@gmail.com>

* Chore: Migrate ForwardLivechatView to Typescript ()

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>

* Chore: Migrate JitsiMeetView to Typescript ()

Co-authored-by: Diego Mello <diegolmello@gmail.com>

* [FIX] Push notifications user preference not syncing correctly ()

Co-authored-by: Diego Mello <diegolmello@gmail.com>

* [FIX] Display prefs showing wrong header icon on tablet ()

* Merge 4.22.0 into master ()

* Tests: Make Detox work on Android ()

* Chore: Migrate NewMessageView to Typescript ()

* Chore: Migrate ScreenLockConfigView to Typescript ()

Co-authored-by: Diego Mello <diegolmello@gmail.com>

* Chore: Migrate ScreenLockedView to Typescript ()

* Chore: Migrate SecurityPrivacyView to Typescript ()

* Chore: Migrate SelectListView to Typescript ()

* Chore: Migrate SelectServerView to Typescript ()

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>

* Chore: Migrate SetUsernameView to Typescript ()

* Chore: Migrate ThemeView to Typescript ()

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>

* Chore: Migrate StatusView to Typescript ()

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>

* Chore: Migrate ShareListView to Typescript ()

Co-authored-by: Gerzon Z <gerzonc@icloud.com>

* Chore: Migrate TeamChannelsView to Typescript ()

Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>

* Language update from LingoHub 🤖 ()

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>

* Chore: Migrate react-navigation to TypeScript ()

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>

* Bump version to 4.23.0 ()

* [FIX] Certificate stops working after app update on iOS ()

* [IMPROVE] Connection stability ()

* [NEW] Permission for uploading files ()

Co-authored-by: Diego Mello <diegolmello@gmail.com>

* [FIX] Files screen stopped listing content on server 4.2 ()

Co-authored-by: Diego Mello <diegolmello@gmail.com>

* Chore: Migrate ModalBlockView to Typescript ()

* Chore: Migrate ModalBlockView to Typescript

* minor tweaks

* update the navigator

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>

* Chore: Migrate SelectedUsersView to Typescript ()

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>

* [IMPROVE] Remove Omnichannel visitor's navigation history ()

Co-authored-by: Diego Mello <diegolmello@gmail.com>

* Merge 4.23.0 into master ()

* [FIX] Download video/quicktime in iOS ()

* Chore: Migrate Redux to Typescript PoC ()

* Chore: Migrate Model's folder to Typescript ()

* Chore: Migrate lib user preferences to Typescript ()

* Chore: Update React Native Device Info to 8.4.8 ()

* [FIX] Roles rendering on dark theme ()

* fix: Add height verification to fix modal dimension ()

* chore: Change the lib `@types/url-parse` to devDependencies ()

* [FIX] teams.removeMembers mobile usage ()

* Chore: Migrate DisplayPrefsView to Typescript ()

* Chore: Migrate Utils Folder to Typescript ()

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>

* Chore: Migrate ThreadMessagesView to Typescript ()

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>

* [FIX] RoomInfoView displaying different info depending on the origin ()

Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>

* [FIX] Message parser switch not updating field properly ()

* [FIX] Lint not ignoring Markdown props ()

* Bump version to 4.24.0 ()

* Chore: Migrate notification/push to Typescript ()

* chore: migrate connect to ts and add tests

* chore: add more tests

* Chore: Update react-native-device-info patch-package and pods ()

* [FIX] App crashes when entering server after applying certificate (Android) ()

* chore: migrate redux module encryption to typescript

* chore: migrate customEmoji to typescript and add tests

* chore: create IPreferences interface

* chore: migrate redux module sortPreferences to typescript

* chore: fix IPreference interface and organize import

* chore: migrate to typescript

* chore: migrate usersTyping to typescript

* Add DiscussionDetails and Item for DiscussionsView; update ThreadDetails, BackgroundContainer and DiscussionsView

* chore: migrate settings to typescript

* chore: add interface to IStateAplication

* chore: migrate redux module room to typescript

* update definitions

* chore: fix error on error interface

* [FIX] Joining and leaving messages in teams ()

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>

* minor tweak

* [FIX] TypeScript's errors raised by HOCs ()

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>

* chore: migrate redux module roles to typescript

* wip: add IRoles to IAplicationState interface

* add storybooks, update snapshots and DiscussionsView

* Minor tweaks

* Fix lint

* Remove unused import

* chore: migrate redux module inviteUsers to typescript

* chore: migrate messages action to typescript

* chore: fix any interface and change null to empty string

* chore: implements IAplicationState on type

* chore: remove mapDispatchToProps and continue ts migration

* chore: fix types and apply IAplicationState to types

* Migrate redux server action/reducer to ts

* add tests

* [FIX] App crashes when opening a notification while app is closed ()

* [FIX] makeThreadName asserting undefined as non-null ()

* [FIX] Threads' pagination not working ()

* update tests

* chore: update settings value types

* Send missing params to selectServerRequest

* [IMPROVE] Convert HEIC images to JPG and remove compression ()

* update interface

* update action definition

* Move onDiscussionpress logic on message, update SearchHeader and DiscussionDetails component,  add useLayoutEffect at DiscussionsView

* Update interfaces and minor tweaks to DiscussionsView screen and components

* Fix navigation logic and update interfaces

* Minor tweaks

* Undo change on project.pbxproj

* Update project.pbxproj

* Update project.pbxproj

* Remove style.ts

* Minor tweak

* update snapshots

* Merge 4.24.0 into master ()

* Chore: Change console.log to console.error when logging error

* chore: add as string to fix type

* Fix lint

* fix types

* test

* Remove console.log

* test

* [FIX] StoryShots not working for async rendered components ()

* remove console.log

* Add missing DiscussionsView snapshot

* fix build and useless done and async generator

* update snapshot

* Chore: fix build and useless done and async generator ()

* fix build and useless done and async generator

* update snapshot

* Chore: Migrate Database to Typescript ()

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>

* Chore: Migrate redux module permissions to typescript ()

* Chore: Migrate redux module share to typescript ()

* chore: migrate redux module share to typescript

* chore: fix types

* chore: update types

* chore: migrate redux module share to typescript

* remove double import

* chore: fix import

* Chore: Migrate redux module createChannel to typescript ()

* chore: migrate createChannel to ts and add tests

* chore: fix naming

* chore: add more types and remove mapDispatchToProps from components

* remove todo

* update tests

* chore: migrate interface to reducer and fix errors on return

* chore: insert IApplicationState to mapStateToProps state type

* Remove spread

* fix type

* fix import and state type

Co-authored-by: Diego Mello <diegolmello@gmail.com>

* Chore: Migrate redux module app to typescript ()

* chore: migrate activeUsers reducer and action to TS

* chore: init types folder and set redux and BaseScreen interface

* chore: remove mapDispatchToProps to use dispatch prop and clear some types

* chore: type selectedUsers action and reducer and improvement in the code of other files

* chore: move IUser to base types

* chore: move state props to ISelectedUsersViewProps

* chore: create mocketStore

* chore: remove applyAppStateMiddleware

* test: create activeUser and selectedUser tests

* test: add more selectedUsers tests

* chore: fix action type

* chore: move types to definition folder and fix imports

* chore: remove unused const

* chore: migrate redux tests to reducer folder and add eslint jest plugin

* chore: exprot initial state and then import on tests

* chore: move interfaces to reducer and import on screen

* chore: set eslint-plugin-jest version to 24.7.0

* chore: fix IUser import

* chore: update interfaces and types names

* chore: update definitions

* chore: update IBaseScreen definitions

* chore: init reducer/app migration to ts

* chore: add tests and migrate RootEnum

* wip: migrate fixed consts to RootEnum

* chore: remove redux action inferences

* fix types

Co-authored-by: Diego Mello <diegolmello@gmail.com>

* Chore: Migrate redux module createDiscussion to typescript  ()

* chore: migrate createDiscussion to ts and add tests

* chore: add TActionCreateDiscussion to TApplicationActions

* fix types

* update types

* fix types

Co-authored-by: Diego Mello <diegolmello@gmail.com>

* [FIX] ios-testflight-experimental unable to find cache ()

* Chore: Remove Non-null assertion operator in ThreadMessagesView ()

Co-authored-by: Diego Mello <diegolmello@gmail.com>

* Chore: Migrate CannedResponsesListView to Typescript ()

* Chore: Migrate CannedResponsesListView to TS

* Moved IcannedResponse to definitions and fixed the index

* Chore: Migrate CannedResponseDetail to TS

* minor tweaks

* refactor: update new types and interfaces for use ISubscription

* fix lint error and canned responses's dropdown

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>

* Chore: Migrate LivechatEditView to Typescript ()

* Chore: Migrate LivechatEditView to Typescript

* refactor: minor tweak

* refactor: fix the interfaces for input

* refactor: fix lint erros

* minor tweak with new navigation types

* function

* iroom tweak

* livechateditview tweak

* TextInput tweak

* refactor: update new types and interfaces for use ISubscription

* refactor to default useState type

* change the component name in SearchBox

* changed state type

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>

* Regression: Message press navigating to empty RoomView ()

Co-authored-by: Diego Mello <diegolmello@gmail.com>

* Regression: Prevent duplicated .jpg on file upload ()

* [FIX] Regression: Prevent duplicated .jpg on file upload

* refactor to all files typed as image/jpeg

* isolate regexp to function

* refactor forceJpgExtension

* clean

* minor tweak

* [FIX] Regression: Prevent duplicated .jpg on file upload

* refactor to all files typed as image/jpeg

* isolate regexp to function

* refactor forceJpgExtension

* clean

* minor tweak

* refactored comment

* Chore: Migrate lib/utils to TypeScript ()

* Migrate utils to TypeScript

* Add @types/semver

* Refactor compareServerVersion(currentVersion, oldVersion, func) to compareServerVersion(current, func, oldVersion)

Co-authored-by: Diego Mello <diegolmello@gmail.com>

* Chore: Migrate readMessages to TS ()

* Migrate readMessages to TS

* Update IRocketChat interface

* [FIX] Unnecessary login dispatch on adding new server ()

* [FIX] Disable tap gesture on call messages ()

* [IMPROVE] Keep biometry option from last session ()

Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>

* Fix reactotron multiple connections ()

* Chore: Fix rocketchat interface ()

* Chore: Migrate logout to Typescript ()

* [NEW] Stream to get individual presence updates ()

Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>

* [FIX] Inject Redux store to prevent/remove require cycles ()

Co-authored-by: Diego Mello <diegolmello@gmail.com>

* Chore: Migrate lib/rocketchat.js to TS - structure PoC ()

Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>

* [FIX]  merged using wrong JS SDK branch ()

* [FIX] Remove deprecated database methods and other database operations ()

* Fix PK error on subscriptions/room

* Instead of checking for pending update, wrap the call on a try catch and return null in case of error

* Generate delete operations before create/update to prevent errors

* Apply same logic on encryption

* Fix database operations on getRoles

* Fix a few database issues found on Bugsnag on ThreadMessagesView

* Run prettier :(

* Chore: Add REST API definitions from server ()

* create first definitions

* chore: implements get and post types

* fix lint

* add ts-ignore

* add teams.removeRoom method

* Remove unused endpoints

Co-authored-by: Diego Mello <diegolmello@gmail.com>

* Chore: Move some methods to SDK ()

* [IMPROVE] Add support for ephemeral messages inside threads ()

* Chore: dehydrate small server requests away from rocketchat.js ()

* Bump version to 4.25.0 ()

* [Snyk] Security upgrade url-parse from 1.5.1 to 1.5.6 ()

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-URLPARSE-2401205

* Language update from LingoHub 🤖 on 2022-02-14Z ()

* Language update from LingoHub 🤖

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 🚀

* remove draft gl

Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>

* Chore: Migrate methods/getSingleMessage to TS ()

* migrate getSingleMessage to TS

* minor tweak

* Chore: Migrate methods/getRooms to TS ()

* migrate getRooms to TS

* add sdk and set any types

* Moved the new variable around and added ts-ignore to follow the pattern from /services/restApi.ts

Co-authored-by: Diego Mello <diegolmello@gmail.com>

* Chore: Migrate updateMessages to Typescript ()

* Chore: Migrate selector/login to TS ()

* migrate selector/login to TS

* Fix lint errors

* set aliases for returns

* Chore: Migrate helpers/parseUrls to Typescript ()

* Chore: Migrate methods/helpers/parseQuery to Typescript ()

* Chore: Migrate methods/helpers/parseQuery to Typescript

* tweak in example

* Chore: Migrate app/commands to typescript ()

* Chore: Migrate lib/encryption folder to TypeScript ()

* Initial commit

* add types/bytebuffer, add type definitions to params and update interfaces

* add more types and type assertions

* update types

* change bang operator by type assertion and update class variables definitions

* add types for deferred class

* minor tweaks on types definitions

* add ts-ignore

* Update encryption.ts

* update deferred and encryption

* update encryption.ts

* Update room.ts

* update toDecrypt type

* initialize sessionKeyExportedString

* remove return types

* Chore: Migrate redux actions/enterpriseModules to TS ()

* migrate enterpriseModules to TS

* update test file

* Chore: Migrate database/services and database/utils to TS ()

* migrate database services and utils to ts

* Migrate tests

Co-authored-by: Diego Mello <diegolmello@gmail.com>

* Chore: Migrate buildMessage to TS ()

* migrate buildMessage to TS

* Fix lint

* minor tweak

* minor tweaks

* Chore: Migrate getPermissions to Typescript ()

* Migrating...

* Fix IPermission

* Playing with types

* Remove `as const`

* Fix lint

* Fix test

* Apply sdk

* Fix lint and autocomplete

* [FIX] Add search and fix pagination for omnichannels departments ()

* [FIX] Search and pagination for omnichannels departments

* pagination complete

* minor tweak

* renamed a param and workaround for a ux bug

* fix style of flatlist and search as header scrollable

* stick the header

* Merge branch 'fix.forward-department-list' of https://github.com/RocketChat/Rocket.Chat.ReactNative into fix.forward-department-list

* refactor pagination

* fix value type

* refactor render search

* refactor layout

* make ts happy

* Chore: Migrate Markdown to Typescript ()

* Chore: Migrate Markdown to TS

* Chore: Migrate Markdown to TS

* minor tweak

* added preview where markdown was preview and fixed params within markdown

* removed ts-ignore

* fix lint

* removed numbersofline={0} and default value to numberOfLines=1

* change how to import markdown preview and remove numberOfLines

* using useTheme inside markdownPreview and remove theme from components

* minor tweak on interfaces

* isNewMarkdown return as boolean

* minor tweaks

* minor tweaks

* removed unused component

* fixed markdown stories

* updated snapshot because removed numberOfLines={0} from message/content

* create IEmoji.ts in definitions and refactor all places where getCustomEmoji was called

* onLinkPress typed

* todo: refactor navtoroominfo

* formatText.test.ts

* markdown stories to typescript too

* minor tweak

* IMessage definition

* refactor: update new types and interfaces for use ISubscription

* refactor: update threadItem for use new MarkdownPreview

* refactor: rollback wrong file commited

* formatHyperlink

* fix lint

* updated item story shot

* refactor and refactor some types

* Remove non-null assertion

* Minor change on useRealName

* tweak

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>

* Chore: Migrate methods/callJitsi to typescript ()

* chore: migrate callJitsi to typescript

* change fixed string to type

* wip

* wip

* back to old times :)

* back to typescript

* Chore: Migrate redux module room to typescript ()

* chore: migrate redux module room to typescript and remove dispatch on dependencies

* chore: add tests to redux module room

* chore: create ERoomType and use on implemention

* chore: update enum name

* fix test id

* Chore: Migrate redux module login to typescript ()

* chore: migrate redux module login to typescript

chore: update redux module login tests

* update workers

* wip

* fix type

* remove partial

* add more status

* migrate the rest of the stuff to typescript

* fix tests and types

* fix types and tests

* Chore: Migrate method getSettings to typescript ()

* chore: migrate getSettings to typescript and and some types

* chore: remove this and add current to code

* chore: add current

* Chore: Migrate getCustomEmojis to TS ()

* update customEmoji interface and getCustomEmoji

* add sdk

* updated emojiCustom rest definition

* minor refactor

* update params object

* [FIX] getRooms request using param with wrong name ()

* Chore: Migrate methods/getRoomInfo to TS ()

* migrate getRoomInfo to TS

* update room type

* update types

* Fix lint error

* Chore: Migrate getSlashCommands to TS ()

* migrate getSlashCommands to TS

* use sdk and update getSlashCommands

* minor tweak

* Remove implicit anys

Co-authored-by: Diego Mello <diegolmello@gmail.com>

* Chore: Migrate getUsersPresence to TS ()

* migrate getUsersPresence to ts

* use sdk and remove this context from getUsersPresence

* Chore: Migrate loadMissedMessages to typescript ()

* chore: migrate loadMissedMessages to typescript

* remove loaderItem

* remove this from functions

* Chore: Migrate methods/getRoles to Typescript ()

* chore: migrate getRoles to ts

* chore: removing unused const

* chore: minor tweak

* Type batch

Co-authored-by: Diego Mello <diegolmello@gmail.com>

* Chore: Migrate methods/loadMessagesForRoom to Typescript ()

* chore: change loadMessagesForRoom to typescript

* minor tweak

* chore: minor tweaks after merge with developer

* chore: minor tweaks after merge with developer

* chore: minor tweak

* chore: minor tweaks

* Fix return

Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>

* Chore: Migrate methods/sendFileMessage to typescript ()

* chore: start the migration

* chore: update sendFileMessage to ts

* chore: removing an `any` from uploadQueue

* chore: minor tweak

* chore: minor tweak

* chore: minor tweaks after merge with developer

* chore: minor tweak after merge develop into current

* [FIX] Differ to Last Session Authenticated ()

* [FIX] Differ to Last Session Authenticated

* Added timesync

* [FIX] Differ to Last Session Authenticated

* Added timesync

* timesync tweaks

* refactor diffLastLocalSession and saveLastLocalAuthentication

* did a race

* Update comment in app/utils/localAuthentication.ts

Co-authored-by: Diego Mello <diegolmello@gmail.com>

* refactor getServerTimeSync and when use this route

* tweak

Co-authored-by: Diego Mello <diegolmello@gmail.com>

* Chore: Migrate methods/loadNextMessages to typescript ()

* feat: update loadNextMessages to ts

* minor tweak

* chore: minor tweaks after merge with developer

* chore: migrate getFileUrlFromMessage to ts ()

* [IMPROVE] Team system messages feedback () ()

* almost there

* Update stories

Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Matheus Barbosa Silva <36537004+matheusbsilva137@users.noreply.github.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Anant Bhasin <38764067+aKn1ghtOut@users.noreply.github.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: lingohub[bot] <69908207+lingohub[bot]@users.noreply.github.com>
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
Co-authored-by: Danish Ahmed Mirza <77742477+try-catch-stack@users.noreply.github.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Snyk bot <snyk-bot@snyk.io>
2022-02-28 16:03:42 -03:00