Commit Graph

643 Commits

Author SHA1 Message Date
Reinaldo Neto a27d63c22e
Chore: Evaluate DirectoryView - TypeScript (#4130) 2022-05-02 08:53:47 -03:00
Gerzon Z 744ee27e18
Regression: Omnichannel icons (#4136)
* fix: Omnichannel icons

* update: `RoomItem.storyshot`
2022-04-29 13:08:19 -04:00
Gleidson Daniel Silva 89e0a40d95
Chore: remove lib/rocketchat step 2 (#4035)
* create index file

* remove roomTypeToApiType from rocketchat and fix imports

* move TOKEN_KEY to const file

* move CURRENT_SERVER to const file

* move CERTIFICATE_KEY to const file

* getRoom

* rename getSlashCommands

* getSlashCommands

* readMessages

* getRooms

* loadThreadMessages

* loadNextMessages

* loadSurroundingMessages

* loadMessagesForRoom

* loadMissedMessages

* clearCache

* canOpenRoom

* setUser

* userPreferencesMethods

* getCustomEmojis

* callJtisi

* triggerActions

* getPermissions

* getRoles

* getSettings

* getUsersPresence

* logout

* sendFileMessage

* shareExtension

* sendMessage

* enterpriseModules

* getPermalinks

* search

* change RocketChat.metodo to direct call

* fix types

* Fix login

* Fix createChannel

* migrate service methods to Service.method call

* change call directly to RocketChat because the use of this

* rollback

* rollback

* fix create discussion

* fix import

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-04-28 17:37:25 -03:00
Gerzon Z 8a75dcf87b
Chore: evaluate `RoomItem` (#4023)
* chore: evaluate `RoomItem`

* update: `RoomItem.storyshot`

* update: interfaces for RoomItem components

* update: UnreadBadge import and RoomItem interfaces

* remove: `avatarSize` from interfaces

* update: `RoomItem.storyshot`
2022-04-20 17:37:54 -04:00
Gerzon Z aab4e4b12a
[FIX] Avatar's size on display mode change (#4042)
* fix: avatar's size

* update snapshot

* update: snapshots

Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2022-04-20 17:02:18 -04:00
Reinaldo Neto 8012031cd3
[NEW] On-Hold chats for Omnichannel (#4051)
* [NEW] Implementing On-Hold Livechat for Omnichannel

* added onHold to database

* list header title open livechats

* update rooms list view

* remove placeOnHold after clicked

* fix mesasgebox reactive to on hold

* navigate to roomslistview

* minor tweaks

* for grouping too

* fix chat on-hold when the agent is fully

* show on hold system messages
2022-04-20 17:53:11 -03:00
Reinaldo Neto 21c8de56ea
[IMPROVE] Accept user avatar url from external provider (#4002)
* [IMPROVE] Accept url to user avatar from external provider

* fix avatar sidebar
2022-04-18 21:52:02 -03:00
Reinaldo Neto 0a67cb8096
[IMPROVE] Visibility of the “incoming chats” in queue (#4039)
* [IMPROVE] Visibility of the “incoming chats” in queue

* fix the custom icon for rtl

* fix thumb colors

* clean queue empty

* added alert to confirm enable omnichannel

* switch to normal

* fix storyshot because was added a new props to list item

* fix height container

* minor tweak

* minor tweak

* fix title
2022-04-15 00:11:36 -03:00
Reinaldo Neto 064920e61b
Chore: Evaluate UnreadBadge to Typescript (#4018)
* Chore: Evaluate UserItem to Typescript and moved from presentation to container

* minor tweak
2022-04-14 23:51:59 -03:00
Reinaldo Neto b75ac1de8b
[IMPROVE] Support Omnichannel icons (#3959)
* [IMPROVE] Support Channel Icons for Omnichannel

* Prop drilling sourceType

* create a column for source in WatermelonDB

* Add sms icon

* start of fetching

* removed usefetch

* custom icon to RoomHeader, RoomActions, RoomInfo

* minor tweak in interface

* fix margin

* add connected to sourceType

* make ts happy

* minor tweak

* fix storyshot

* refactor omnichannel source interface

* minor tweak roomActionsview

* Added storyshot

* minor tweak

* fix storyshot

* fix display extended without avatar

* fix connected object

* wip android build

Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2022-04-14 23:27:36 -03:00
Reinaldo Neto 25c37c1a60
Chore: Migrate i18n to Typescript (#3988)
* Chore: Migrate i18n to Typescript and fix the Left and Right actions in RoomItem

* remove fix to roomItem

* update storyshot

* Chore: Migrate i18n to Typescript and fix the Left and Right actions in RoomItem

* remove fix to roomItem

* update storyshot

* fix removed itens

* fix changes requested

* interface for i18n, added resolveJsonModule to tsconfig.json

* tweak at error alert

* fix storyshot

* refactor comments

* create function isTranslated

* fix accessibilityLabel

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-04-14 17:30:41 -03:00
Reinaldo Neto e28f7ac4b6
[FIX] Send upload inside a thread (#4053) 2022-04-14 14:40:37 -03:00
Alex Junior ef81796cd3
Chore: Evaluate KeyboardView - TypeScript (#4014)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-04-13 17:43:56 -03:00
Gerzon Z b9651493d2
Chore: update `theme` type (#4025)
* chore: update `theme` type

* update: components

* update: storyshots

* add: `theme` type to `DirectoryItem`

* chore: update theme type on `message/index.tsx`

* update: `RoomTypeIcon`'s useTheme
2022-04-12 12:27:05 -04:00
Alex Junior b0d408ebc8
Chore: add eslint-plugin-react-hooks lib (#4021)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-04-11 15:01:43 -03:00
Reinaldo Neto 53eb251476
Chore: Evaluate UserItem - TypeScript (#3983)
* Chore: Evaluate UserItem - TypeScript

* fix storyshot

* minor tweaks

* tweaks on comments

* fix storyshot

* move useritem from presentation to containers

* remove comments
2022-04-08 23:43:31 -03:00
Reinaldo Neto 8268beeb67
[FIX] Create a discussion from NewMessageView (#4003)
* [FIX] Create a discussion from NewMessageView

* fix the itemData.value to any

* minor tweak
2022-04-08 19:53:48 -03:00
Reinaldo Neto ec952b058a
Chore: Upgrade @types/react-native to 0.64.2 (#4026)
* Chore: Upgrade @types/react-native to 0.64.2

* minor tweak in comment

* minor tweak

* Chore: Upgrade @types/react-native to 0.64.2

* minor tweak in comment

* minor tweak

* fix accessibility within bordelessbutton
2022-04-08 11:27:10 -03:00
Gerzon Z 349e10e328
Chore: TypeScript Migration - evaluate DirectoryItem (#4016)
* chore: evaluate DirectoryItem

* chore: move `DirectoryItem` to `containers`

* update: `themes` import
2022-04-07 16:25:25 -04:00
Gerzon Z cd0c8abced
Chore: evaluate ServerItem - TypeScript Migration (#4015)
* chore: evaluate ServerItem

* update: IServerInfo interface

* chore: move `ServerItem` to `containers` folder

* update: `ServerItem` import on Storybook

* update: `themes` import
2022-04-07 13:07:16 -04:00
Gleidson Daniel Silva d38c17bcd8
Chore: Create app/lib/store folder (#4028)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-04-07 11:19:54 -03:00
Gleidson Daniel Silva bdf83e546e
Chore: Move constants away from rocketchat folder - Typescript (#4022)
* create keys file and export all consts

* fix import E2E_MESSAGE_TYPE

* fix constants import

* fix constants import

* fix E2E_BANNER_TYPE import

* fix E2E_ROOM_TYPES import

* fix THEME_PREFERENCES_KEY import

* fix CRASH_REPORT_KEY and ANALYTICS_EVENTS_KEY import

* fix MIN_ROCKETCHAT_VERSION import

* fix constantDisplayMode import

* fix environment imports

* fix links imports

* fix localAuthentication imports

* fix localPath imports

* fix messagesStatus imports

* fix messageTypeLoad imports

* fix defaultSettings imports

* fix tablet imports

* update with todo for colors

* move to lib folder

* change constant/colors to constant
2022-04-07 11:10:03 -03:00
Gleidson Daniel Silva 474ea98a3b
Chore: Create app/lib/navigation folder (#4027)
* change Navigation to appNavigation and move to navigation folder

* change ShareNavigation to shareNavigation and move to navigation folder

* fix navigation import

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-04-07 10:22:19 -03:00
Gleidson Daniel Silva 7d2ae5ea7c
Chore: Evaluate helpers and methods - Typescript (#4030)
* move userPreferences to methods folder

* create formatAttachmentUrl file

* create compareServerVersion file

* create generateLoadMoreId file
2022-04-07 10:13:19 -03:00
Gleidson Daniel Silva 2eba327396
Chore: Evaluate lib/rocketchat structure and files (#3986)
* create TSubscription type

* move logoutOtherLocations to restApis

* mvoe getUserInfo to restApi

* move constants to lib folder

* change Rocketchat methods to sdk methods

* move toggleFavorite to restApis

* move functions to rocketchat folder

* delete old rocketchat file :)

* fix imports

* fix lint and return types

* Fix subscribe to rooms not getting called

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-04-04 16:15:29 -03:00
Alex Junior 488074b4ae
Chore: Evaluate Message - TypeScript (#3944)
Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2022-04-01 18:52:38 -03:00
Alex Junior 3b3cd67d78
Chore: Clean ReactionsModal - TypeScript (#3926) 2022-04-01 12:32:17 -03:00
Gleidson Daniel Silva cfe352dfbc
Chore: Clean SafeAreaView - Typescript (#3907)
* chore: clean SafeAreaView

* fix type

* update supported types
2022-03-31 19:46:11 -03:00
Gleidson Daniel Silva e0459aed89
Chore: Evaluate MessageBox - TypeScript (#3936)
* chore: migrate buttons

* chore: migrate CommandsPreview

* chore: migrate Mention

* chore: migrate Some files

* chore: migrate RecordAudio

* fix lint

* fix context value

* fix MessageBox types
2022-03-31 19:39:24 -03:00
Gleidson Daniel Silva 64b594f9ae
Chore: clean RoomHeader (#3923) 2022-03-31 19:29:14 -03:00
Diego Mello 4416f82665
Chore: Properly type MessageActions (#3930) 2022-03-31 09:38:20 -03:00
Gerzon Z 49c92cfa7b
[FIX] `AttachedActions`'s button (#3989)
* fix: `AttachedActions`'s button

* fix: text color

* update: `Message.storyshot`
2022-03-30 17:55:57 -04:00
Alex Junior 5a3ffe5136
[FIX] Animation to show all login services options (#3985)
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
2022-03-29 20:56:50 -03:00
Reinaldo Neto 40cb3b1ae7
Chore: Evaluate UiKit - TypeScript (#3939)
* Chore: Evaluate UiKit - TypeScript

* minor tweak
2022-03-29 17:06:50 -03:00
Gerzon Z 1c70ffc614
Chore: Evaluate `Avatar` - TypeScript (#3929)
* update: `Avatar` component

remove: non-null assertion from ThreadMessagesView Item

* remove: `this.mounted` from `Avatar` component

update: navParam on MessageAvatar component
2022-03-29 12:23:45 -04:00
Gerzon Z 93c9d2efdf
Chore: use `@react-native-clipboard/clipboard` (#3950)
* add: @react-native-clipboard/clipboard

* create jest.setup.js file and centralizes all mocks on these folder for jest

Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2022-03-29 12:09:44 -04:00
Gleidson Daniel Silva d9d9d35928
[FIX] Update navToRoom press verification (#3974) 2022-03-28 14:43:57 -03:00
Gleidson Daniel Silva f3cf4f1e7f
[FIX] Adds a check to see if the collapsed property exists. (#3973)
* Adds a check to see if the collapsed property exists.

* 👀

* update snapshot

* revert

* revert yarn.lock
2022-03-28 12:08:18 -03:00
Diego Mello 902827422b
Chore: Properly type Status (#3911)
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-03-25 17:05:49 -03:00
Reinaldo Neto 70cb252d1b
Chore: Migrate containers: List to Typescript (#3921)
* Chore: Migrate containers: List to Typescript

* minor tweak

* fix storyshot List - item flatlist

* fix IListContainer

* fix type of childrens

* minor tweak
2022-03-25 15:09:02 -03:00
Reinaldo Neto 744712b8d5
Chore: Migrate containers: FormContainer to Typescript (#3922)
* Chore: Migrate containers: FormContainer to Typescript

* minor tweak

* theme fix

* fix react.reactelement[]

* minor tweak

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-03-25 14:55:20 -03:00
Reinaldo Neto 6418803517
Chore: Evaluate Markdown - TypeScript (#3948) 2022-03-25 14:20:09 -03:00
Gerzon Z d5ac663199
[FIX] Drawer failing to open/close on ProfileView (#3963) 2022-03-25 11:35:25 -03:00
Gerzon Z f9064bf5af
Chore: Evaluate HeaderButton - TypeScript (#3925)
* update: `HeaderButton` components

* update: types

* fix types

* fix lint and update snapshot

Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2022-03-24 15:55:01 -04:00
Gerzon Z 8ea183373e
[FIX] Audio thumb's size (#3945)
* update: Audio component
2022-03-23 10:49:45 -04:00
Gerzon Z 9a17ce91a8
[FIX] "Sent an attachment" text on media preview for threads (#3947)
* update: `Content` component

* update: `Message` snapshots
2022-03-23 10:37:11 -04:00
Reinaldo Neto 4d3c440892
Chore: Evaluate Passcode - TypeScript (#3931)
* Chore: Migrate containers: Passcode to Typescript

* minor tweak

* minor tweak
2022-03-22 21:43:59 -03:00
Alex Junior cbe2b23e27
Chore: Clean LoginServices - TypeScript (#3935) 2022-03-22 19:14:42 -03:00
Gleidson Daniel Silva 2fb7d917a7
Chore: Evaluate ActionSheet - TypeScript (#3927) 2022-03-22 17:44:27 -03:00
Gerzon Z e8d23791d3
Chore: Evaluate TextInput - TypeScript (#3908)
* update `TextInput` component

update: ActivityIndicator

* remove: `any`

* update: `TextInput` on `UIKit`

* Fix returnKeyType

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-03-22 14:01:54 -04:00
Alex Junior f90f1a326f
Chore: Clean MessageErrorActions - TypeScript (#3928) 2022-03-22 11:29:45 -03:00
Alex Junior e00580d84e
Chore: Clean ThreadDetails - TypeScript (#3924) 2022-03-22 11:16:41 -03:00
Alex Junior e1038af2f8
Chore: Clean InAppNotification - TypeScript (#3920) 2022-03-22 11:01:55 -03:00
Alex Junior 6f31a00e90
Chore: Clean Check component - TypeScript (#3919)
* chore: clear Check component

* chore: update tests
2022-03-22 10:53:09 -03:00
Alex Junior 571afcaab8
Chore: Clean TwoFactor - Typescript (#3912)
* chore: clean TwoFactor

* minor tweak

* minor refactor

* chore: removing console log
2022-03-22 10:44:07 -03:00
Gerzon Z b0580bf547
[NEW] Redesign quoted messages (#3883) 2022-03-21 17:44:06 -03:00
Reinaldo Neto 82acb917fc
[FIX] Wrong param sent to system message (#3943)
* [FIX] Display added user to team

* tweak when remove members from team too

* update storyshot

Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
2022-03-21 17:25:40 -03:00
Gleidson Daniel Silva 2ff48471d6
chore: Evaluate SearchBox (#3909) 2022-03-21 16:23:59 -03:00
Gleidson Daniel Silva 1a3d2fbc10
Chore: StatusBar theme and style props (#3906)
* chore: clean status bar and remove useless theme

* mend

* wip

* remove unused props
2022-03-21 16:10:11 -03:00
Reinaldo Neto 8af1d1ceb5
Chore: Migrate containers: Loading to Typescript (#3915) 2022-03-18 12:02:04 -03:00
Reinaldo Neto fae46f565b
Chore: Migrate containers: Toast to Typescript (#3913) 2022-03-18 11:25:03 -03:00
Gleidson Daniel Silva 75f3f90913
[NEW] Collapsible Message (#3879)
* create new collapsible component

* create collapsible tests and update snapshot

* fix quote :)

* update snapshot

* add support to color

* add collapsed prop

* fix some styles

* fix tests

* wip

* clean

* add CollapsibleQuote story

* better style

* update snapshots

* add better tests

* remove testID

* update storyshot
2022-03-18 07:01:30 -03:00
Gerzon Z 38b2b08278
Chore: Evaluate ActivityIndicator - TypeScript (#3914)
* update: `BackgroundContainer` and `ActivityIndicator`

* update: return type for `RCActivityIndicator`

* update: return type for `BackgroundContainer`
2022-03-17 22:37:10 -04:00
Gerzon Z 334b1bad7b
Chore: Evaluate BackgroundContainer - TypeScript (#3917)
* update: `BackgroundContainer`

* remove: `theme` from `IBackgroundContainer`

* update: return type for `BackgroundContainer`
2022-03-17 17:21:19 -04:00
Gerzon Z a1e33c4a69
Chore: evaluate Header components - TypeScript (#3918)
* update: Header components
2022-03-17 15:25:31 -04:00
Gerzon Z a754983ac8
Chore: Dehydrate share extension from rocketchat.js (#3753)
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-03-16 17:40:32 -03:00
Reinaldo Neto 823d4c658c
Chore: Migrate methods/actions to Typescript and refactor UiKit folder (#3716)
* Chore: Migrate methods/actions to Typescript

* tweak in actions

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

* refactor sdk.current

* interface and uikit done

* refactor interface, index and utils from UiKit

* minor tweak

* minor tweak

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-03-16 16:07:49 -03:00
Alex Junior 9650c98b4f
Chore: Migrate REST API - runSlashCommand to Typescript (#3893) 2022-03-15 22:14:50 -03:00
Danish Ahmed Mirza 1d04e9379f
[FIX] Mention from suggestions concatenates to query string on autocomplete (#3696)
* [FIX] Mention suggestion concatenate to query string

* Add function to get regexp and its tests in separate files

* Update getRegexp.ts

* Update file names

* Try new regex

* One regex for all mention types

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-03-15 16:33:43 -03:00
Reinaldo Neto 2cc4b9c1ba
Chore: Migrate REST API - getCommandPreview and executeCommandPreview to Typescript (#3897) 2022-03-15 11:41:23 -03:00
Alex Junior 8a1f81d707
Chore: Migrate REST API - getCommandPreview to Typescript (#3894) 2022-03-14 23:16:53 -03:00
Alex Junior cd00366613
Chore: Update react-native-mmkv-storage to 0.6.12 (#3634)
* chore: updating mmkv library

* feat: updating android ejson to use the getSecureKey new version

* feat: updating IOS files to use the getSecureKey new version

* feat: changing all mmkv methods to use sync calls

* feat: changing mmkv methods from Screen lock

* feat: changing all mmkv methods from login, ssl certificate and change/add server

* feat: changing all mmkv methods from login, ssl certificate and change/add server

* feat: changing all mmkv methods from logout

* feat: changing all mmkv methods from e2e

* fix: small fix at encryption and server drop down

* feat: changing all mmkv methods from set theme

* feat: changing all mmkv methods from openLink

* fix: setting up mmkv to works property on Android

* fix: fix an error to set the theme when open the app

* refactor: change the react-native branch (temporary)

* refactor: removing all `Async` from mmkv functions name

* refactor: removing await from unnecessary functions, removing console.log and update cocoapods

* refactor: removing unnecessary undefined from methods

* feat: creating a custom hook for mmkv

* refactor: changing the fetchPasscode to use the useUserPreferences hook

* refactor: changing setTheme from app/index

* refactor: small fix on setTheme

* chore: update mmkv to 0.6.11

* chore: update mmkv to 0.6.11

* chore: minor tweak

* chore: update mmkv to 0.6.12

* chore: mock NativeModules

* chore: fix test mmkv

* chore: removing custom MMKV JSI module, since is no more necessary after 0.6.11 version

* feat: removing some async calls from mmkv after update from develop

* feat: creating a function to get the initialTheme

* feat: removing unnecessary try/catch

* fix: fixing the blink white when open the app

* feat: changing useMMKVStorage to create from mmkv lib

* test: creating a mock for mmkv create function

* chore: fix errors on tablet

* minor tweak
2022-03-09 16:41:26 -03:00
Gerzon Z 80918f56fa
Chore: Dehydrate login methods from rocketchat.js (#3759)
* dehydrate login methods from rocketchat.js
2022-03-08 14:54:26 -04:00
Reinaldo Neto 9becdf564e
Chore: Migrate REST API - getListCannedResponse to Typescript (#3858) 2022-03-08 11:30:45 -03:00
Reinaldo Neto cbfa7bf43a
Chore: Migrate RoomInfoView to Typescript (#3778)
* 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 (#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
Diego Mello 6b3730ce43
Chore: Migrate RoomView to Typescript (#3754) 2022-03-02 11:18:01 -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
Diego Mello 51ed83a33e
[IMPROVE] Team system messages feedback (#3771)
* almost there

* Update stories
2022-02-23 17:31:14 -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
Reinaldo Neto 5ac4700d51
Chore: Migrate Markdown to Typescript (#3558)
* 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>
2022-02-17 12:27:01 -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
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
Danish Ahmed Mirza f78a763dfb
[FIX] Disable tap gesture on call messages (#3694) 2022-02-08 09:47:23 -03: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
Reinaldo Neto d894c6aab8
Regression: Prevent duplicated .jpg on file upload (#3658)
* [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
2022-02-07 13:52:09 -03:00
Gerzon Z d246c2c6e8
Regression: Message press navigating to empty RoomView (#3680)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-02-07 11:41:29 -04:00
Reinaldo Neto 0289ba716d
Chore: Migrate LivechatEditView to Typescript (#3499)
* 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>
2022-02-07 12:18:37 -03:00
Reinaldo Neto 6933278fd5
Chore: Migrate CannedResponsesListView to Typescript (#3553)
* 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>
2022-02-04 19:15:01 -03: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 89613bb85b Merge branch 'develop' into new.add-discusions-roomactionsview 2022-01-31 17:32:49 -04:00
Gleidson Daniel Silva 2f7ff43ea0
[FIX] StoryShots not working for async rendered components (#3677) 2022-01-31 18:15:44 -03:00
Gerzon Z 5a320a806c
Merge branch 'develop' into new.add-discusions-roomactionsview 2022-01-28 10:59:02 -04:00
Gleidson Daniel Silva 8305d3dd6d
Merge branch 'develop' into chore/migration-ts-redux-users-typing 2022-01-26 09:52:14 -03:00
Gerzon Z 5d84468561 Minor tweaks 2022-01-24 15:12:09 -04:00
Gerzon Z bce775d88d Fix navigation logic and update interfaces 2022-01-24 14:35:06 -04:00
Gerzon Z 0a6e5d3fb0 Move onDiscussionpress logic on message, update SearchHeader and DiscussionDetails component, add useLayoutEffect at DiscussionsView 2022-01-24 11:51:31 -04:00
Diego Mello ea9a2da90a
Merge branch 'develop' into new.add-discusions-roomactionsview 2022-01-21 13:07:49 -03:00