Commit Graph

649 Commits

Author SHA1 Message Date
Gleidson Daniel Silva 256bf0eaee
Chore: Migrate REST API - deleteRoom to Typescript (#3834) 2022-03-07 09:33:58 -03:00
Gleidson Daniel Silva 892e919768
Chore: Migrate REST API - leaveRoom to Typescript (#3833)
* chore: add rest api type

* remove any
2022-03-07 09:20:12 -03:00
Gleidson Daniel Silva 58418fc5c2
Chore: Delete unused function getUserRoles (#3836) 2022-03-07 09:03:51 -03:00
Alex Junior a9f074d20a
chore: add rest api return (#3826) 2022-03-05 00:40:41 -03:00
Alex Junior f69ef6e59b
chore: add rest api return (#3829) 2022-03-05 00:28:36 -03:00
Alex Junior 70c15343e8
chore: add rest api return (#3825) 2022-03-05 00:17:24 -03:00
Alex Junior 4989e6cb5c
chore: add rest api return (#3824) 2022-03-05 00:08:26 -03:00
Alex Junior 0444e9b846
Chore: Migrate REST API - updateJitsiTimeout to Typescript (#3822)
* 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 (#3818) 2022-03-04 11:18:06 -03:00
Gleidson Daniel Silva 9265dc345d
Chore: Migrate REST API - updateGroupKey to Typescript (#3817) 2022-03-04 11:08:36 -03:00
Gleidson Daniel Silva 2e95a3c9a7
Chore: Migrate REST API - e2eSetRoomKeyID to Typescript (#3816) 2022-03-04 10:51:39 -03:00
Gleidson Daniel Silva a7ecc1e427
Chore: Migrate REST API - toggleRead to Typescript (#3820) 2022-03-04 10:38:05 -03:00
Reinaldo Neto 4c490576fa
Chore: Migrate REST API - e2eRequestSubscriptionKeys to Typescript (#3813) 2022-03-03 23:12:36 -03:00
Alex Junior 3a7ec74e5a
Chore: Migrate subscriptions/room to TS (#3752)
* 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 (#3748)
* 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
Reinaldo Neto b06be5a2ac
Chore: Migrate methods/loadSurroundingMessages to Typescript (#3733)
* 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 (#3787) 2022-03-03 15:15:06 -03:00
Reinaldo Neto 9751cc4426
Chore: Migrate REST API - toggleBlockUser to Typescript (#3808) 2022-03-03 14:52:00 -03:00
Gerzon Z 399cdac452
Chore: Migrate REST API - teamListRoomsOfUser to TS (#3805)
* 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 (#3774)
* 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 (#3781)
* 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 (#3802)
* 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 (#3800)
* 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 (#3791)
* 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 (#3799)
* 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 (#3797)
* 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 (#3788)
* 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 (#3796)
* Migrate `user.register` to TypeScript
2022-03-02 16:08:56 -04:00
Reinaldo Neto d506de9f23
Chore: Migrate REST API - e2eGetUsersOfRoomWithoutKey to Typescript (#3793)
* 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 (#3786)
* 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 (#3794)
* 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 (#3807) 2022-03-02 16:19:34 -03:00
Reinaldo Neto cb8d4be7eb
Chore: Migrate REST API - getDepartmentInfo to Typescript (#3795) 2022-03-02 16:00:51 -03:00
Gerzon Z c5023eaeea
Chore: Migrate REST API - convertChannelToTeam to TS (#3792)
* 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 (#3801)
* Migrate `subscriptions.unread` to typescript
2022-03-02 13:06:30 -04:00
Gerzon Z 5f92a509d1
Chore: Migrate loadThreadMessages to TS (#3718)
* Migrate loadThreadMessages to TypeScript
* Update interfaces
2022-03-02 11:41:15 -04:00
Diego Mello 6626510f50
Chore: Migrate RoomActionsView to Typescript (#3750) 2022-03-02 11:49:43 -03:00
Diego Mello 6b3730ce43
Chore: Migrate RoomView to Typescript (#3754) 2022-03-02 11:18:01 -03:00
Gleidson Daniel Silva 4172d563b7
Chore: Server API types POC - loadMessagesForRoom (#3765)
* 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>
2022-02-25 18:32:03 -03:00
Gleidson Daniel Silva 4224f4d9d0
Chore: Migrate to TS RommInfoEditView (#3766)
* initial commit

* fix last types

* fix import

* fix lint
2022-02-25 18:24:08 -03:00
Alex Junior 91de74ed9f
Chore: Migrate views/RoomListView to typescript (#3758)
* chore: migrating RoomListView to ts

* chore: migrating RoomListView to ts

* chore: implementing types for RoomListView

* chore: change ChatsStackParamList for fix RoomListView errors

* chore: minor tweak

* chore: minor tweak

* chore: fix setTimeout type

* chore: applying changes requested

* chore: minor tweak
2022-02-25 15:59:39 -03:00
Gleidson Daniel Silva 88131e3bfb
Chore: Migrate RoomMembersView to Typescript (#3769)
* chore: migrate RoomMembersView to ts

* fix goRoom item interface
2022-02-25 13:43:42 -03:00
Gleidson Daniel Silva 00d9ed1972
Chore: create definitions for e2e.setUserPublicAndPrivateKeys api call (#3775) 2022-02-24 18:59:57 -03:00
Alex Junior 6b5efcec82
chore: removing unused function getTeamInfo (#3773) 2022-02-24 14:28:17 -03:00
Gleidson Daniel Silva 531ad9b9b4
fix: fix mergeSubscriptionsRooms (#3770) 2022-02-23 15:55:38 -03:00
Gleidson Daniel Silva b5d964095e
Chore: Migrate method canOpenRoom to Typescript (#3650)
* chore: migrate canOpenRoom to ts

* chore: update rocketchat types

* change types to Isubscription types
2022-02-22 17:00:33 -03:00
Alex Junior cbfca132c5
Chore: Migrate methods/getThreadName to typescript (#3707)
* chore: change getThreadName to typescript

* chore: change types after merge develop into current

* chore: minor tweak
2022-02-22 13:01:35 -03:00
Gerzon Z c5cc192dc9
Chore: Migrate methods/enterpriseModules to TS (#3706)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-02-22 09:07:54 -03:00
Gerzon Z e58bdb8fe7
Chore: Migrate sendMessage to TS (#3712)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-02-22 09:04:01 -03:00
Gleidson Daniel Silva 753dec9e27
Chore: Migrate to Typescript mergeSubscriptionRooms and findSubscriptionsRooms (#3747)
* fix fromJSONValue type

* migrate findSubscription and mergeSubscription to typescript

* chore: fix subscription param returning null
2022-02-21 16:41:49 -03:00
Alex Junior f27ddf2e22
chore: migrate getFileUrlFromMessage to ts (#3734) 2022-02-21 15:19:40 -03:00
Alex Junior 6f27126f5e
Chore: Migrate methods/loadNextMessages to typescript (#3719)
* feat: update loadNextMessages to ts

* minor tweak

* chore: minor tweaks after merge with developer
2022-02-21 15:04:17 -03:00
Reinaldo Neto afb91b49db
[FIX] Differ to Last Session Authenticated (#3667)
* [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>
2022-02-21 13:38:49 -03:00
Alex Junior 17c63c717b
Chore: Migrate methods/sendFileMessage to typescript (#3683)
* 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
2022-02-21 13:06:57 -03:00
Alex Junior a3a4b66810
Chore: Migrate methods/loadMessagesForRoom to Typescript (#3701)
* 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>
2022-02-21 11:40:57 -03:00
Alex Junior 113cfb043e
Chore: Migrate methods/getRoles to Typescript (#3741)
* chore: migrate getRoles to ts

* chore: removing unused const

* chore: minor tweak

* Type batch

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-02-21 11:26:10 -03:00
Gleidson Daniel Silva bdd1ce4abf
Chore: Migrate loadMissedMessages to typescript (#3704)
* chore: migrate loadMissedMessages to typescript

* remove loaderItem

* remove this from functions
2022-02-21 10:59:44 -03:00
Gerzon Z 5e39cc0ba5
Chore: Migrate getUsersPresence to TS (#3717)
* migrate getUsersPresence to ts

* use sdk and remove this context from getUsersPresence
2022-02-18 22:31:38 -04:00
Gerzon Z 8237b3e673
Chore: Migrate getSlashCommands to TS (#3711)
* migrate getSlashCommands to TS

* use sdk and update getSlashCommands

* minor tweak

* Remove implicit anys

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-02-18 22:19:33 -04:00
Gerzon Z 1cfa45eeec
Chore: Migrate methods/getRoomInfo to TS (#3695)
* migrate getRoomInfo to TS

* update room type

* update types

* Fix lint error
2022-02-18 22:09:05 -04:00
Gerzon Z 4e24b7cd82
[FIX] getRooms request using param with wrong name (#3761) 2022-02-18 17:49:46 -04:00
Gerzon Z 8bb248890c
Chore: Migrate getCustomEmojis to TS (#3724)
* update customEmoji interface and getCustomEmoji

* add sdk

* updated emojiCustom rest definition

* minor refactor

* update params object
2022-02-18 12:20:16 -04:00
Gleidson Daniel Silva 370798f100
Chore: Migrate method getSettings to typescript (#3703)
* chore: migrate getSettings to typescript and and some types

* chore: remove this and add current to code

* chore: add current
2022-02-18 11:49:47 -03:00
Gleidson Daniel Silva eb38761a37
Chore: Migrate methods/callJitsi to typescript (#3660)
* chore: migrate callJitsi to typescript

* change fixed string to type

* wip

* wip

* back to old times :)

* back to typescript
2022-02-17 15:45:21 -03:00
Reinaldo Neto 9ec598407d
[FIX] Add search and fix pagination for omnichannels departments (#3621)
* [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
2022-02-17 11:57:30 -03:00
Diego Mello a58b27e4f1
Chore: Migrate getPermissions to Typescript (#3720)
* Migrating...

* Fix IPermission

* Playing with types

* Remove `as const`

* Fix lint

* Fix test

* Apply sdk

* Fix lint and autocomplete
2022-02-17 10:06:31 -03:00
Gerzon Z 86cc8a7d16
Chore: Migrate buildMessage to TS (#3732)
* migrate buildMessage to TS

* Fix lint

* minor tweak

* minor tweaks
2022-02-16 20:07:24 -04:00
Gerzon Z 88172f0aa9
Chore: Migrate database/services and database/utils to TS (#3708)
* migrate database services and utils to ts

* Migrate tests

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-02-16 18:19:04 -04:00
Gerzon Z 352a718631
Chore: Migrate lib/encryption folder to TypeScript (#3639)
* 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
2022-02-16 17:14:28 -04:00
Reinaldo Neto 9b369e548e
Chore: Migrate methods/helpers/parseQuery to Typescript (#3742)
* Chore: Migrate methods/helpers/parseQuery to Typescript

* tweak in example
2022-02-16 12:20:55 -03:00
Gleidson Daniel Silva 941a21dac6
Chore: Migrate helpers/parseUrls to Typescript (#3735) 2022-02-16 12:17:25 -03:00
Diego Mello f51ec9ef0c
Chore: Migrate updateMessages to Typescript (#3715) 2022-02-16 12:02:17 -03:00
Gerzon Z ed716396d0
Chore: Migrate methods/getRooms to TS (#3702)
* 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>
2022-02-16 11:48:15 -03:00
Gerzon Z 7634297439
Chore: Migrate methods/getSingleMessage to TS (#3700)
* migrate getSingleMessage to TS

* minor tweak
2022-02-16 11:42:32 -03:00
Diego Mello 1ffa592201
Chore: dehydrate small server requests away from rocketchat.js (#3740) 2022-02-15 15:50:55 -03:00
Diego Mello c7f4e5531c
[IMPROVE] Add support for ephemeral messages inside threads (#3687) 2022-02-15 15:46:17 -03:00
Diego Mello 765c5c50f8
Chore: Move some methods to SDK (#3736) 2022-02-14 16:23:13 -03:00
Gleidson Daniel Silva 7866ec3f33
Chore: Add REST API definitions from server (#3721)
* 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>
2022-02-14 13:20:29 -03:00
Diego Mello 88d33b42c2
[FIX] Remove deprecated database methods and other database operations (#3686)
* 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 :(
2022-02-10 17:16:10 -03:00
Gerzon Z a01d281032
Chore: Migrate lib/rocketchat.js to TS - structure PoC (#3661)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-02-10 09:10:42 -03:00
Gleidson Daniel Silva 977cfd2863
[FIX] Inject Redux store to prevent/remove require cycles (#3691)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-02-09 18:16:20 -03:00
Diego Mello ab9d568528
[NEW] Stream to get individual presence updates (#3606)
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
2022-02-09 17:44:53 -03:00
Diego Mello 7d23385555
Chore: Migrate logout to Typescript (#3688) 2022-02-09 17:37:08 -03:00
Diego Mello 5997c7ae6b
[IMPROVE] Keep biometry option from last session (#3668)
Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
2022-02-08 13:44:34 -03:00
Danish Ahmed Mirza 38be5ce54f
[FIX] Unnecessary login dispatch on adding new server (#3693) 2022-02-08 09:07:10 -03:00
Gerzon Z 6839a6e548
Chore: Migrate readMessages to TS (#3669)
* Migrate readMessages to TS

* Update IRocketChat interface
2022-02-07 14:54:19 -04:00
Gerzon Z 2d1b093666
Chore: Migrate lib/utils to TypeScript (#3637)
* 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>
2022-02-07 14:44:04 -04:00
Gerzon Z 9caff40a2e Merge branch 'develop' into new.add-discusions-roomactionsview 2022-02-01 09:49:39 -04:00
Reinaldo Neto f88bdfb97c
Chore: Migrate Database to Typescript (#3580)
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-02-01 10:39:09 -03:00
Gerzon Z e010d804d5 Merge branch 'develop' into new.add-discusions-roomactionsview 2022-01-17 10:12:19 -04:00
Reinaldo Neto 905e12380a
[FIX] teams.removeMembers mobile usage (#3557) 2022-01-11 11:44:53 -03:00
Gleidson Daniel Silva 791ef4d423
Chore: Migrate lib user preferences to Typescript (#3578) 2022-01-11 11:23:43 -03:00
Reinaldo Neto b75e192e20
[IMPROVE] Remove Omnichannel visitor's navigation history (#3534)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-12-13 13:29:48 -03:00
Reinaldo Neto 4e15c25ef5
[FIX] Files screen stopped listing content on server 4.2 (#3541)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-12-13 13:27:43 -03:00
Reinaldo Neto a1cee02fb0
[NEW] Permission for uploading files (#3505)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-12-13 13:27:01 -03:00
Diego Mello 404c7cff07
[IMPROVE] Connection stability (#3531) 2021-12-07 17:05:30 -03:00
Gerzon Z 691bf1ef17
Chore: Migrate react-navigation to TypeScript (#3480)
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
2021-12-03 16:27:57 -03:00
Gerzon Z 2b7f589847
Merge branch 'develop' into new.add-discusions-roomactionsview 2021-11-23 12:02:43 -04:00
Alex Junior 251b42ca54
[IMPROVE] Open Jitsi call even if server isn't found (#3442) 2021-11-16 13:04:33 -03:00
Gerzon Z 5dc0a0a05f Merge branch 'develop' into new.add-discusions-roomactionsview 2021-10-20 18:10:30 -04: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
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
Gerzon Z da7f954996
Merge branch 'develop' into new.add-discusions-roomactionsview 2021-10-05 14:37:34 -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
Gerzon Z f9dc2a975f Merge branch 'develop' into new.add-discusions-roomactionsview 2021-10-04 13:14:07 -04:00
Diego Mello 8de6adcf79
Chore: Update WatermelonDB to 0.23.0 (#3386) 2021-10-01 17:35:13 -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 a52199a49c
[NEW] Canned responses (#3355)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-09-22 14:29:26 -03:00
Gerzon Z 55b89e6e43
Merge branch 'develop' into new.add-discusions-roomactionsview 2021-09-17 15:18:17 -04:00
Gerzon Z ecee12c9d0 Migrate to TypeScript, update interfaces and some changes to container components 2021-09-17 15:15:26 -04: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
Gerzon Z f4c86eca29 Merge develop into branch 2021-09-14 15:30:03 -04:00
Alex Junior 69a67ea998
Chore: Start Typescript migration (#3279) 2021-09-13 17:41:05 -03:00
Gerzon Z 91dedfb620 Convert SearchHeader to reusable component and minor tweaks to DiscussionMessagesView 2021-09-08 19:56:35 -04:00
Gerzon Z 7429e4be5c Add getDiscussions endpoint 2021-09-03 15:50:18 -04: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 d1702aa416
Regression: Settings pagination not working (#3277) 2021-07-15 11:34:39 -03:00
Reinaldo Neto 16fee2aa64
[IMPROVE] Convert Team to Channel (#3249)
* [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>
2021-07-09 15:46:24 -03:00
Diego Mello 6385daebb5
[FIX] Subscribe to settings making app to hang on login (#3254) 2021-07-06 13:22:38 -03:00
Gerzon Z f42c9149fb
[FIX] Google OAuth triggering cookies logic (#3244)
* Remove checkCookiesAndLogout

* Add loginEmailPassword to loginOAuthOrSso

* Add isFromWebView field

* Fix migrations

* Minor tweak

* Fix OAuth for other services

* Fix migrations

* Stop persisting loginEmailPassword

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-07-05 15:21:15 -03:00
Gerzon Z d547b6129f
[IMPROVE] Subscribe to settings (#3222)
* Add action and reducer

* Add streamNotifyAll listener

* Minor tweak

* Minor tweak

* Fix update not taking in consideration other type columnns

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-07-01 16:30:55 -03:00
Gung Wah 88191b965a
[IMPROVE] Subscribe to roles (#2992)
* [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>
2021-07-01 13:51:19 -03:00
Gung Wah 30487c392f
[IMPROVE] Subscribe to permissions (#2993)
* [CHORE] Subscribe to permissions

* add redux action for update

* Minor tweaks

Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-07-01 10:57:23 -03:00
Diego Mello 267dfc547e
[FIX] Teams tests (#3196)
* Make team_main not optional and fix tests

* Undo isOptional and fix query

* Comment
2021-06-07 17:20:07 -03:00
Gerzon Z 91371e88d9
[NEW] Add Teams to Directory (#3181)
* Added Teams to DirectoryView

* Fix icon

* Minor tweaks

* add tests

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-06-04 15:07:26 -03:00
Gerzon Z 5fd7981d07
[NEW] Convert/Move Channel to Team (#3164)
* Added Create Team

* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView

* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView

* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view

* Minor tweaks

* Show TeamChannelsView only if joined the team

* Minor tweak

* Added AddChannelTeamView

* Added permissions, translations strings for teams,  deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView

* Refactor touch component and update removeRoom and deleteRoom methods

* Minor tweaks

* Minor tweaks for removing channels and addExistingChannelView

* Added missing events and fixed channels list

* Minor tweaks for refactored touch component

* Added SelectListView and logic for leaving team

* Added addTeamMember and removeTeamMember

* Minor tweak

* Added deleteTeam function

* Minor tweak

* Minor tweaks

* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable

* Remove unnecesary prop

* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable

* Minor tweak

* Update loadMessagesForRoom.js

* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item

* Fix unnecessary changes

* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView

* Updated styles, added tag story

* Minor tweak

* Minor tweaks

* Auto-join tweak

* Minor tweaks

* Minor tweak on search

* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam

* Minor tweaks

* Update SelectListView

* Update handleLeaveTeam, remove unnecessary method, add story

* Minor tweak

* Minor visual tweaks

* Update SelectListView.js

* Update index.js

* Update RoomMembersView

* Updated SelectListView, RoomActionsView, leaveTeam method and string translations

* Update SelectListVIew

* Minor tweak

* Update SelectListView

* Minor tweak

* Minor tweaks

* Fix for List.Item subtitles being pushed down by title's flex

* Minor tweaks

* Update RoomActionsView

* Use showConfirmationAlert and showErrorAlert

* Remove addTeamMember, update removeTeamMember

* Update Alert

* Minor tweaks

* Minor tweaks

* Minor tweak

* Update showActionSheet on RoomMembersView

* Remove team main from query and move code around

* Fetch roles

* Update RoomMembersView and SelectListView

* Update rocketchat.js

* Updated leaveTeam and handleRemoveFromTeam

* Fix validation

* Remove unnecessary function

* Update RoomActionsView

* Update en.json

* updated deleteTeam function and permissions

* Added showConfirmationAlert

* Added string translations for teams

* Fix permission

* Added moveChannelToTeam and convertToTeam functionality

* Fix SelectListView RadioButton

* Fix moveToTeam

* Added searchBar to SelectListVIew

* Update RoomView , SelectListVIew and string translation for error

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-06-02 10:44:19 -03:00
Gerzon Z 69c39b14af
[NEW] Delete Teams (#3123)
* Added Create Team

* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView

* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView

* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view

* Minor tweaks

* Show TeamChannelsView only if joined the team

* Minor tweak

* Added AddChannelTeamView

* Added permissions, translations strings for teams,  deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView

* Refactor touch component and update removeRoom and deleteRoom methods

* Minor tweaks

* Minor tweaks for removing channels and addExistingChannelView

* Added missing events and fixed channels list

* Minor tweaks for refactored touch component

* Added SelectListView and logic for leaving team

* Added addTeamMember and removeTeamMember

* Minor tweak

* Added deleteTeam function

* Minor tweak

* Minor tweaks

* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable

* Remove unnecesary prop

* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable

* Minor tweak

* Update loadMessagesForRoom.js

* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item

* Fix unnecessary changes

* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView

* Updated styles, added tag story

* Minor tweak

* Minor tweaks

* Auto-join tweak

* Minor tweaks

* Minor tweak on search

* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam

* Minor tweaks

* Update SelectListView

* Update handleLeaveTeam, remove unnecessary method, add story

* Minor tweak

* Minor visual tweaks

* Update SelectListView.js

* Update index.js

* Update RoomMembersView

* Updated SelectListView, RoomActionsView, leaveTeam method and string translations

* Update SelectListVIew

* Minor tweak

* Update SelectListView

* Minor tweak

* Minor tweaks

* Fix for List.Item subtitles being pushed down by title's flex

* Minor tweaks

* Update RoomActionsView

* Use showConfirmationAlert and showErrorAlert

* Remove addTeamMember, update removeTeamMember

* Update Alert

* Minor tweaks

* Minor tweaks

* Minor tweak

* Update showActionSheet on RoomMembersView

* Remove team main from query and move code around

* Fetch roles

* Update RoomMembersView and SelectListView

* Update rocketchat.js

* Updated leaveTeam and handleRemoveFromTeam

* Fix validation

* Remove unnecessary function

* Update RoomActionsView

* Update en.json

* updated deleteTeam function and permissions

* Added showConfirmationAlert

* Added string translations for teams

* Fix permission

* Minor tweaks

* Typo

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-05-28 11:22:41 -03:00
Reinaldo Neto 0bbeb42271
[FIX] Discussions not subscribing properly to messages when opened from inside the room (#3149)
* [FIX] Promise at subscription Room

* E2E - Update previous roomView count after send msg in discussion

* Not needed rn

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-05-27 14:23:17 -03:00
Gerzon Z 6dcb9a51f1
[NEW] Remove member from team (#3117)
* Added Create Team

* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView

* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView

* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view

* Minor tweaks

* Show TeamChannelsView only if joined the team

* Minor tweak

* Added AddChannelTeamView

* Added permissions, translations strings for teams,  deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView

* Refactor touch component and update removeRoom and deleteRoom methods

* Minor tweaks

* Minor tweaks for removing channels and addExistingChannelView

* Added missing events and fixed channels list

* Minor tweaks for refactored touch component

* Added SelectListView and logic for leaving team

* Added addTeamMember and removeTeamMember

* Minor tweak

* Minor tweak

* Minor tweaks

* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable

* Remove unnecesary prop

* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable

* Minor tweak

* Update loadMessagesForRoom.js

* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item

* Fix unnecessary changes

* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView

* Updated styles, added tag story

* Minor tweak

* Minor tweaks

* Auto-join tweak

* Minor tweaks

* Minor tweak on search

* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam

* Minor tweaks

* Update SelectListView

* Update handleLeaveTeam, remove unnecessary method, add story

* Minor tweak

* Minor visual tweaks

* Update SelectListView.js

* Update RoomMembersView

* Updated SelectListView, RoomActionsView, leaveTeam method and string translations

* Update SelectListVIew

* Minor tweak

* Update SelectListView

* Minor tweak

* Minor tweaks

* Fix for List.Item subtitles being pushed down by title's flex

* Minor tweaks

* Update RoomActionsView

* Use showConfirmationAlert and showErrorAlert

* Remove addTeamMember, update removeTeamMember

* Update Alert

* Minor tweaks

* Minor tweaks

* Minor tweak

* Update showActionSheet on RoomMembersView

* Remove team main from query and move code around

* Fetch roles

* Update RoomMembersView and SelectListView

* Updated leaveTeam and handleRemoveFromTeam

* Fix validation

* Remove unnecessary function

* Added confirmationAlert for missing permissions case

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-05-26 18:01:06 -03:00
Diego Mello 6d3bcfbd67
[FIX] Method calls not sending date params as EJSON (#3159) 2021-05-26 16:32:30 -03:00
Diego Mello 3ef4ef5317
[NEW] Jump to message (#3099)
* Scrolling

* Add loadMore button at the end of loadMessagesForRoom

* Delete dummy item on tap

* Only insert loadMore dummy if there's more data

* load surrounding messages

* fixes and load next

* First dummy and dummy-next

* Save load next messages

* Check if message exists before fetching surroundings

* Refactoring List

* Jumping to message :)

* Showing blocking loader while scrolling/fetching message

* Check if message exists on local db before inserting dummy

* Delete dummies automatically when the message sent to updateMessages again

* Minor cleanup

* Fix scroll

* Highlight message

* Jump to bottom

* Load more on scroll

* Adding stories to LoadMore

* Refactoring

* Add loading indicator to LoadMore

* Small refactor

* Add LoadMore to threads

* getMoreMessages

* chat.getThreadMessages -> getThreadMessages

* Start jumping to threads

* Add jumpToMessageId on RoomView

* Nav to correct channel

* Fix PK issue on thread_messages

* Disable jump to thread from another room

* Fix nav to thread params

* Add navToRoom

* Refactor styles

* Test notch

* Fix Android border

* Fix thread message on title

* Fix NavBottomFAB on threads

* Minor cleanup

* Workaround for readThreads being called too often

* Lint

* Update tests

* Jump from search

* Go to threads from search

* Remove getItemLayout and rely on viewable items

* Fix load older

* stash working

* Fix infinite loading

* Lower itemVisiblePercentThreshhold to 10, so very long messages behave as viewable

* Add generateLoadMoreId util

* Minor cleanup

* Jump to message from notification/deep linking

* Add getMessageInfo

* Nav to threads from other rooms

* getThreadName

* Unnecessary logic

* getRoomInfo

* Colocate getMessageInfo closer to RoomView

* Minor cleanup

* Remove search from RoomActionsView

* Minor fix for search on not joined public channels

* Jump to any link

* Fix tablets

* Jump to message from MessagesView and other bug fixes

* Fix issue on Urls

* Adds race condition to cancel jump to message if it's stuck or after 5 seconds

* Jump from message search quote

* lint

* Stop onPress

* Small refactor on load methods

* Minor fixes for loadThreadMessages

* Minor typo

* LoadMore i18n

* Minor cleanup
2021-05-26 14:24:54 -03:00
Gerzon Z 62336c6d3a
[NEW] Leave Teams (#3116)
* Added Create Team

* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView

* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView

* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view

* Minor tweaks

* Show TeamChannelsView only if joined the team

* Minor tweak

* Added AddChannelTeamView

* Added permissions, translations strings for teams,  deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView

* Refactor touch component and update removeRoom and deleteRoom methods

* Minor tweaks

* Minor tweaks for removing channels and addExistingChannelView

* Added missing events and fixed channels list

* Minor tweaks for refactored touch component

* Added SelectListView and logic for leaving team

* Minor tweak

* Minor tweak

* Minor tweaks

* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable

* Remove unnecesary prop

* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable

* Minor tweak

* Update loadMessagesForRoom.js

* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item

* Fix unnecessary changes

* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView

* Updated styles, added tag story

* Minor tweak

* Minor tweaks

* Auto-join tweak

* Minor tweaks

* Minor tweak on search

* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam

* Minor tweaks

* Update SelectListView

* Update handleLeaveTeam, remove unnecessary method, add story

* Minor tweak

* Minor visual tweaks

* Updated SelectListView, RoomActionsView, leaveTeam method and string translations

* Update SelectListVIew

* Minor tweak

* Update SelectListView

* Minor tweak

* Fix for List.Item subtitles being pushed down by title's flex

* Minor tweaks

* Update RoomActionsView

* Use showConfirmationAlert and showErrorAlert

* Lint

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-05-25 15:04:05 -03:00
Gerzon Z 9670fa623a
[NEW] Add/Create/Remove channel on a team (#3090)
* Added Create Team

* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView

* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView

* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view

* Minor tweaks

* Show TeamChannelsView only if joined the team

* Minor tweak

* Added AddChannelTeamView

* Added permissions, translations strings for teams,  deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView

* Refactor touch component and update removeRoom and deleteRoom methods

* Minor tweaks

* Minor tweaks for removing channels and addExistingChannelView

* Added missing events and fixed channels list

* Minor tweaks for refactored touch component

* Minor tweaks

* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable

* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable

* Minor tweak

* Update loadMessagesForRoom.js

* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item

* Fix unnecessary changes

* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView

* Updated styles, added tag story

* Minor tweak

* Minor tweaks

* Auto-join tweak

* Minor tweaks

* Minor tweak on search

* One way to refactor :P

* Next level refactor :)

* Fix create group dm

* Refactor renderItem

* Minor bug fixes

* Fix stories

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-05-19 18:14:42 -03:00
Gerzon Z 1f0ff830a3
[NEW] Create Team (#3082)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-05-12 16:01:29 -03:00
Diego Mello 8f571fd029
[FIX] App making calls to DDP after socket was killed by OS (#3062)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
2021-05-06 11:06:52 -03:00
Noach Magedman fc52286bfa
[FIX] Connecting stream listener not being cleared (#3008)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-05-05 13:02:26 -03:00
Sumukha Hegde 9ce374dc2d
[CHORE] Refactor mention tracking logic (#2997)
* [Improvement] Improve mentions

This PR focuses on improving command, emoji, channel and user mentions.

* [Tests] Added e2e tests for mention improvement

* [Improvement] Modify slash command mention logic.
Added slash command with argument preview
Slash command should show only if the message bigins with /

* Return data on search for empty text

* Minor fixes

* Update e2e tests

* Minor fix

* [FIX] allow command mentioning in between text

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-04-07 15:56:16 -03:00
Diego Mello d04d0f27b6
[NEW] Basic support to Teams (#3016)
* Database migration

* RoomItem icon

* Team icons

* Teams group

* Small tweak on RoomTypeIcon

* RoomView Header

* Add team's channels to RoomView header

* Starting TeamChannelsView

* Icon size

* o data found

* Update TeamChannelsView, add teams subscriptions and send params to TeamChannelsView

* Use teams.ListRooms endpoint, render rooms list, remove unused functions

* Show team main on TeamChannelsView

* Disable swipe

* Pagination working

* Fix blinking no data found

* Search working

* Refactor to use BackgroundContainer while loading

* Go to room

* Cleanup

* Go to actions

* Events

* Lint

* Add debounce to go room

* Fix for tablet

* i18n

* Small fix

* Minor refactor

* Use local data when it exists

* Show last message

* Force teams migration

* Add stories to BackgroundContainer

* Remove unused component

* Move RoomViewHeader into containers folder

* Refactoring

* Testing RoomHeader

* i18n

* Fix server endpoint version

* Fix events

Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
2021-04-07 15:31:25 -03:00
Diego Mello bb844e52fb
[REGRESSION] Clear local server cache not loading rooms (#3007)
* Fix clear cache

* Write e2e tests

* Fix lint

* Fix isRTL
2021-04-01 09:58:20 -03:00
Gerzon Z 25b71155e6
[IMPROVEMENT] User status icons (#2991)
* Add status and teams

* Update icons, icon size and getUsersPresence

* Minor changes

* Refactor RoomTypeIcon

* Minor tweaks

* Update unit tests

* Minor fixes

* Fix styles

* Small refactor

* Update jest

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-03-31 14:47:17 -03:00
Gerzon Z 8bc8a07e72
[FIX] SSO not working with 2FA (TOTP) (#2978)
* Update AuthenticationWebView.js

* Updated loginTOTP

* Added validation

* Update rocketchat.js

* Update rocketchat.js

* Update rocketchat.js

* Update rocketchat.js

* Fix resolve

* Remove incognito

* Fix totp being requested on webview

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-03-22 14:26:44 -03:00
Diego Mello d7562f7b79
[CHORE] Add status and teams icons (#2989)
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
2021-03-18 15:33:02 -03:00
Gerzon Z 460e82f759
[CHORE] Simplify server version comparison (#2922)
* Simplify server version where needed

* Added lte and gte functions and updated imports

* Updated functions names

* Update util functions

* Update util function and added methods

* Remove lt and coerce from getPermissions and mergeSubscriptionsRooms

* Fix comparison

* Update getPermissions.js

* Remove unused import

* Fix lint

* Fix lint

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-03-18 10:33:35 -03:00
Gerzon Z 1ff6530a19
[FIX] App forgetting workspace when server is not finished added (#2798)
* [FIX] App forgetting workspace

* Added e2e tests

* Update login.js

* Update logout.js

* Reverted changes on login and share, updated init

* Update 08-persistantworkspace.spec.js

* Revert unnecessary changes

* Revert line change

* Update share.js

* Tweak tests

* Use wm shorthand

* Remove irrelevant calls to RocketChat.TOKEN_KEY

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-03-18 10:18:33 -03:00
Diego Mello cc8dc6a75a
[FIX] Deep linking and other connectivity issues (#2894)
* Navigate from push notification only if necessary

* Use JS SDK branch

* Stop reconnecting if it's already connected

* Fix RoomsListView forever loading after tapping push notification of another server

* Execute fewer operations on app/index

* Remove roomsRequest call from onForeground

* Apply check and reopen

* Stop opening in-app notification when the app is on backgorund

* Connecting tweaks

* Fix deep linking not working if the app is on background

* Force reset yarn cache

* Upgrade JS SDK

* Remove listener on unmount

* Fix resume on Android after back button is pressed

* Fix local authentication resume

* Fix back button android

* Change JS SDK branch
2021-03-05 13:10:21 -03:00
Gung Wah 40c075d748
[FIX] Cannot read property 'some' of undefined on hasPermission (#2966)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-03-05 10:44:46 -03:00
Gerzon Z 99a32479f4
[FIX] Support chats order for older versions of the server (#2934)
* Update mergeSubscriptionsRooms.js

* Update mergeSubscriptionsRooms.js

* Update mergeSubscriptionsRooms.js

* Minor refactor

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-02-26 15:31:35 -03:00
Gung Wah 98890df773
[CHORE] Use shortcut syntax for get collections (#2932)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-02-26 13:25:51 -03:00
Gerzon Z d6da8665c6
[IMPROVEMENT] Remove lodash.isEqual (#2893)
* Added dequal and react-fast-compare as substitutes to lodash.isEqual

* Update ReplyPreview.js

* Remove react-fast-compare

* Removed deep-equal and upgrade babel-eslint dev dependency

* Fix avatar

* Fix Messagebox

* Fix CreateDiscussionView

* ModalBlockView

* NewMessageView

* ProfileView

* RoomInfoEditView

* ServerDropdown

* Return local search as object instead of observable

* SelectedUsersView

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-02-26 13:01:45 -03:00