* Chore: Migrate ee/omnichannel folder to Typescript
* omnichannelstatus and queue list
* boolean searching and react.ref
* test initi
* test and refactor interfaces
* minor tweak
* minor tweaks
* 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
* migrate REST API `teams.listRoomsOfUser` to TypeScript
* update: `rooms` type on `teams.listRoomsOfUser`
* update: if-conditionals on `RoomActionsView`
* create interface and implements base types
* fix some types
* Update app/lib/methods/updateMessages.ts
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* fix date type
* apply types changes
* fix type
* fix date value
* fix types
* typescript things...
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* 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
* 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 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 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>
* [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
* 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: 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>
* 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 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 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 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 SearchMessagesView to Typescript
* feat: minor tweak
* minor tweaks
* minor tweak
* minor tweak scrollPersist
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
* Initial commit
* Fix module import
* Improve TextInput and KeyboardView interfaces and migrate scrollPersistTaps to TS
* update interfaces
* add new interfaces and extract them to their own file
* chore: migrate style.js to ts
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
* chore: migrate the view InviteUsersEditView to ts
* refactor: change some requestes after code review
* minor tweaks
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
* [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>
* 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>
* [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>
* [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>
* [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>
* 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>
* [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>
* [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>
* 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>
* [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>
* 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>
* [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>
* [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>
* [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>
* [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>
* Update non-dev patches
* Update dev patches
* Update minors
* Update dev minors
* Update few non semver
* Cookies
* datepicker, netinfo, base64 and bootsplash
* Patch cookies
* Update navigation
* Device info
* mocha
* localize
* react-native-picker-select
* vector icons, xregexp, popover
* try save husky
* document picker
* Remove emotion dev
* Downgrade some libs and make sure jest is passing
* Update storybook to stable
* mocha, axios, bootsplash
* Update lint job to node 15
* [IMPROVE] Add convert team to a channel
* Action to SelectListView and new words to i18n
* Implemented the post and it's working with selected channels or not
* Fixed the Convert Team Warning at english i18n and changed the function name
* E2E test completed in sequence the convert/move teams
* [IMPROVE] Add convert team to a channel
* Action to SelectListView and new words to i18n
* Implemented the post and it's working with selected channels or not
* Fixed the Convert Team Warning at english i18n and changed the function name
* rebase develop into this branch
* [IMPROVE] Add convert team to a channel
* Action to SelectListView and new words to i18n
* Implemented the post and it's working with selected channels or not
* Fixed the Convert Team Warning at english i18n and changed the function name
* rebase develop into this branch
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Jump to message by in-app notification
* Bug fix to scroll proper the last message
* Minor tweak
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVE] Add Jitsi button to teams
* Added setting to check is Jitsi is Enable for Channel too
* Fix typo
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Rule to delete team's channel
* Fixed Saga and flow to delete team and team's channel
* Adjusted the warning alert as the Figma
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [CHORE] Subscribe to Roles
* subscribe to roles-change
* add subscribe for stream-roles
* fixed subscribe roles
* Add componentDidUpdate to RoomMembersView and propType
* Update componentDidUpdate in RoomMembersView, roles reducer, getRoles method and actionType
* Minor tweaks
* Remove componentDidUpdate
* Fix add role
* Fix initialState and remove role
* Minor try/catch fix
* Fix lint
* Fix offline first
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
* E2E tests for jump to message
* Fix thread tests
* Remove unnecessary function and uncomment tests
* Minor tweak
* Fix tests and minor tweaks
* Minor tweaks
* Update docker data
* Fix docker
* Fix duplicated testid
* Minor refactor
* Fix jump to old message test
* Fix load on scroll
* Add fab test
* Minor addition
* stash
* almost there
* Final changes
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Don't show Block Button inside Group DM Actions
* Use RocketChat.isGroupChat instead of simple if condition
* Add return
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [IMPROVEMENT] refactoring how to leave team
* Fix the data passed to leaveTeam
* Fixed the lint error in i18n, the path of i18n, merged two ifs in one
* Fixed the Saga's flow when try to leave a room
* Fixed params passed to leaveRoom
* Fix the function name of leaveTeam
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* [FIX] Showing only channel you joined
* [FIX] How to get the params to mnavigation to other room from TeamChannelList
* Show alert Not allowed when trying access private channel that you don't joined
Co-authored-by: Diego Mello <diegolmello@gmail.com>
* added events for team channels view and add existing channel view
* add logevents for room actions view and room info edit view
Co-authored-by: Diego Mello <diegolmello@gmail.com>