Commit Graph

2103 Commits

Author SHA1 Message Date
Diego Mello 988c6931ec
Chore: Bump patches (#4679) 2022-11-16 10:26:37 -03:00
Reinaldo Neto b0ea5e31f8
[FIX] Auto-translate feature wasn't working (#4678) 2022-11-11 16:51:57 -03:00
Reinaldo Neto 251cc9843b
[IMPROVE] Add delete-own-message permission (#4663) 2022-11-11 14:28:41 -03:00
Diego Mello 316bc80876
[IMPROVE] Add missing borders styles changes (#4675) 2022-11-11 13:04:57 -03:00
Diego Mello 94f0981b49
Regression: Remove users already in local database (#4673) 2022-11-10 16:59:27 -03:00
Diego Mello 05a04f7f29
[IMPROVE] Sync message actions order with web app (#4672) 2022-11-10 16:48:52 -03:00
Reinaldo Neto cd9924361e
[FIX] Non primitive dependency on useSubscriptionRoles (#4618)
* [FIX] Non primitive dependency on useSubscriptionRoles

* removed sort

* Remove JSON.parse and order by array

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-11-10 13:36:24 -03:00
Reinaldo Neto 440e745901
[IMPROVE] Border radius and width on inputs (#4659)
* [IMPROVE] Border radius to 4 on FormTextInput

* change border width

* Remove border radius from StatusView input

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-11-10 13:35:59 -03:00
Reinaldo Neto 612405cfae
[IMPROVE] Increase border radius on all buttons (#4657)
* border radius complete

* increase to chip

* Apply in missing places

* tweak slash command and update test

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-11-10 13:22:02 -03:00
Reinaldo Neto a5e538c13f
[NEW] Emphasis Elements (italic, strike and bold) in Message Parser Components (#4621)
* [NEW] Emphasis Elements (italic, strike and bold) in Message Parser Components

* update storyshot

* minor tweak and remove of isLink

* Add theme provider to new md stories

* Cleanup

* Update tests

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-11-07 13:42:42 -03:00
Duda Nogueira 0ad5545a4c
[i18n] Add Slovenian (#4474)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-11-04 15:13:29 -03:00
lingohub[bot] faf79bb59e
Language update from LingoHub 🤖 (#4640)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub

Easy language translations with LingoHub 🚀

Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-11-04 15:03:55 -03:00
Gleidson Daniel Silva 3a9a98bdfe
[NEW] Reply in direct (#4582)
* add translations

* implements reply in DM

* refactor data e2e

* fix ignoreuser e2e

* create test for reply in dm

* minor tweak

Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
2022-11-04 14:09:58 -03:00
Reinaldo Neto 8940883dac
Regression: Fix styles on FormTextInput (#4625)
* Regression: Fix styles on FormTextInput

* minor tweak padding icons

* added 48 height
2022-11-04 10:49:00 -03:00
Reinaldo Neto 711cac5876
[FIX] Cancelling when adding a server (#4565)
* TC-110 [FIX] Cancelling when adding a server

* Removing the close button when connecting to a server
2022-11-01 14:09:00 -03:00
Reinaldo Neto 816f43b828
[FIX] Messages attributed to wrong user (#4598) 2022-10-31 14:02:35 -03:00
Reinaldo Neto 57620ff40d
[IMPROVE] Spotlight users order (#4527)
* [IMPROVE] Spotlight users order

* minor tweak query

* minor tweak removing query and using regex

* minor tweak

* minor tweak, make ts happy

* fix the ts

* fix lint and type TSearch
2022-10-31 13:43:47 -03:00
Reinaldo Neto 2b53898066
[FIX] Storybook of System Message within Message.stories (#4629) 2022-10-21 17:09:05 -03:00
Diego Mello 1aef030d75
Chore: Deprecate Dimensions (#4597) 2022-10-21 15:29:02 -03:00
Danish Ahmed Mirza 1486204546
[IMPROVE] Redesign emoji picker (#4328)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-10-21 15:27:55 -03:00
Reinaldo Neto ec03f49b2d
[FIX] UiKit/DatePicker is broken (#4607)
* [FIX] UiKit/DatePicker is broken

* minor tweak
2022-10-21 13:52:12 -03:00
Gleidson Daniel Silva 16e11c7304
[IMPROVE] System messages consistency (#4461)
* fix sys messages

* update snapshot

* update snapshot

* add username

* wip

* wip

* change to switch and fix types

* wip

* new translations

* update snapshot

* Update app/containers/message/utils.ts

Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>

* fix types and return

* remove unused translation

* fix types

* remove unused params

* minor tweak

* update story

Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
2022-10-21 13:35:26 -03:00
Reinaldo Neto 761aef2c04
[FIX] Screen Lock's Password screen UI is broken on tablets (#4583)
* [FIX] Screen Lock's Password screen UI is broken on tablets

* minor tweak and added comment

* minor tweak

* minor tweak

* minor tweak
2022-10-18 16:26:49 -03:00
Gleidson Daniel Silva 525f84885a
remove wrong logic on badge prop (#4564)
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
2022-10-18 15:25:15 -03:00
Luciano Marcos Pierdona Junior 6dd9578413
[FIX] Team creation not adding members (#4588)
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-10-18 08:39:06 -03:00
Reinaldo Neto 531f3d0147
[IMPROVE] Add ignore user to user profile (#4600)
* button ignore and pased the param

* load room from database and check is is ignored

* move handleIgnore to lib/method/helpers

* Ignore and Unignore, also reactivity

* block and unblock user

* pass fromRid from actionView to InfoView too

* remove console.log

* unsubscribe subscriptionFrom

* block and unblock user from dm

* test to block user and ignore user

* minor tweak

* tweak data

* minor tweak

* add test before tapBack

* refactor names
2022-10-13 18:29:55 -03:00
Reinaldo Neto 300e5fc793
[FIX] Touch/Face ID toggle does not enable automatically the first time (#4576)
* [FIX] Touch/Face ID toggle does not enable automatically the first time

* minor tweak no competition setState
2022-10-07 12:34:51 -03:00
Reinaldo Neto 63e2a3a85c
Regression: Reset E2E Key section missing padding (#4595) 2022-10-07 12:01:04 -03:00
Diego Mello 5828a04aeb
[IMPROVE] Use Android 12 SplashScreen API (#4479) 2022-10-04 10:36:05 -03:00
Gleidson Daniel Silva cda998942b
[FIX] Fix quote message layout (#4568)
* fix layout

* fix quote

* update snapshot
2022-10-04 10:05:40 -03:00
Gleidson Daniel Silva 2d68faff3f
[Regression] Fix iPad subtitle font size on Header (#4586) 2022-10-04 09:56:39 -03:00
Gleidson Daniel Silva fe04faac64
Chore: Migrate SettingsView to hooks (#4542)
* migrate settings view to hooks

* temp - add non-null assertion

* fix options

* Update app/views/SettingsView/index.tsx

Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>

* Update app/views/SettingsView/index.tsx

Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>

* fix options

Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
2022-09-30 11:50:33 -03:00
Danish Ahmed Mirza 2f03ca52c5
[IMPROVE] Add `All` tab in Reactions List (#4409)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-09-29 16:42:04 -03:00
Reinaldo Neto 43ebae9b19
[FIX] Cannot read property 'render' of undefined on markdown (#4549) 2022-09-28 17:06:43 -03:00
Reinaldo Neto e48788c828
Regression: Inconsistent style on TextInput on iOS and Android (#4569)
* Regression: Inconsistent style on TextInput on iOS and Android

* tweak to height
2022-09-27 15:21:05 -03:00
Reinaldo Neto d2d1d787f2
Regression: Local search is returning wrong object (#4567) 2022-09-27 15:08:44 -03:00
Reinaldo Neto cbf9ae3d37
[FIX] Decrease space between sections on lists (#4543)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-09-23 17:24:37 -03:00
Reinaldo Neto ee1b09d5ec
Regression: Default Browser View title (#4556) 2022-09-23 17:22:21 -03:00
Gleidson Daniel Silva d1e2c3fe6d
[FIX] Fix filenames and servers url when downloading audio files (#4553) 2022-09-23 17:21:11 -03:00
Reinaldo Neto 5771dbd066
[FIX] SearchBox background and unify usage (#4519) 2022-09-22 23:03:02 -03:00
Reinaldo Neto e10de8b209
[FIX] Search in Rooms List crashes Android app (#4546)
* [FIX] Search in Rooms List crashes Android app

* back to previous search

* change the method/searchlocal
2022-09-22 22:39:52 -03:00
Reinaldo Neto 9d69c10bbd
Chore: Hooks app/views/LanguageView (#4537)
* Chore: Hooks app/views/LanguageView

* minor tweak app selector
2022-09-22 18:40:32 -03:00
Reinaldo Neto b3a286329c
Chore: Hooks app/views/UserNotificationPreferenceView (#4502)
* Chore: Hooks app/views/UserNotificationPreferenceView

* added trycatch and userId

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-09-22 18:31:23 -03:00
Reinaldo Neto 214e1cc009
[FIX] Apply thicker border width and remove fixed height on TextInput (#4503)
* [FIX] Apply thicker border width and remove fixed height on TextInput

* changed the last input border from hairline to 2

* update formtextinput storyshot test
2022-09-22 18:16:25 -03:00
Diego Mello 18f359a8ef
Regression: Poor performance in messages list on Android (#4536)
* Create custom RefreshControl as a workaround

* Remove unnecessary FlatList rngh change
2022-09-22 09:49:59 -03:00
Reinaldo Neto 05c1798a58
[FIX] Decrease space between sections on List (#4520)
* [FIX] Decrease space between sections on List

* minor tweak listcontainer

* update test

* Small fixes for header/info

* Update tests

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-09-19 15:14:05 -03:00
Gleidson Daniel Silva e146cbae9f
Chore: Create useDebounce hook (#4470)
* create useDebounce hook

* fix types

* apply useDebounce hook

* migrate to use-debounce lib

* remove useless useDebounce
2022-09-16 12:19:07 -03:00
Reinaldo Neto aefb60b5d2
[FIX]Update profile name (#4513) 2022-09-16 12:04:25 -03:00
Gleidson Daniel Silva 989ced89bc
Chore: Improve code and migrate some props to hooks on ThemeView (#4414)
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
2022-09-12 10:16:00 -03:00
Gleidson Daniel Silva 07f0618ab4
[FIX] Big usernames during discussion creation bugs UI (#4499)
* fix multiselect itens style

* remove useless brackets

* remove scroll from the top of the list items
2022-09-09 15:23:00 -03:00
Gleidson Daniel Silva 6484edddb6
Regression: Jitsi not leaving call properly (#4511) 2022-09-09 15:15:08 -03:00
Gleidson Daniel Silva cf7b9a09f4
[FIX] When creating a new user, "Custom Fields" are breaking functionality (#4501) 2022-09-09 14:01:55 -03:00
Reinaldo Neto 1bc3f542f2
Regression: Create private team and channel as default (#4493)
* Regression: Create private team and channel as default

* minor tweak
2022-09-09 11:49:06 -03:00
Gleidson Daniel Silva f9f13e7fe3
[FIX] Remove the tmid parameter when it is empty (#4500)
* add custom fields after register

* remove tmid when it is null

* wip

* wip

* wip
2022-09-08 17:58:50 -03:00
Reinaldo Neto c1a4ddc001
[FIX] System messages should be not italic (#4484) 2022-09-06 18:28:28 -03:00
Reinaldo Neto c9ce52958c
Chore: Hooks app/views/ForgotPasswordView (#4485)
* Chore: Hooks app/views/ForgotPasswordView

* validating email and using hook forms

* using mode onCHange

* add return

* fix theme

Co-authored-by: Gleidson Daniel <gleidson10daniel@hotmail.com>
2022-09-06 14:44:31 -03:00
Reinaldo Neto eabb9f157c
Chore: Hooks app/views/SetUsernameView (#4488)
* Chore: Hooks app/views/SetUsernameView

* semantic change of loading state

Co-authored-by: Gleidson Daniel <gleidson10daniel@hotmail.com>
2022-09-06 13:53:21 -03:00
Gleidson Daniel Silva e3a99a93e4
[FIX] Add loading prop on RoomActionsView to avoid double click (#4462) 2022-09-05 09:33:56 -03:00
Gleidson Daniel Silva 8d26230e4f
[FIX] Wrong Team's icon on SelectTeam item's list (#4469) 2022-09-05 09:19:45 -03:00
Reinaldo Neto 991d7156a9
Regression: Jump to message from search view (#4476) 2022-08-30 17:59:10 -03:00
Reinaldo Neto 9cbffff248
[IMPROVE] Redesign create room flow (#4381)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-08-26 16:16:45 -03:00
Gleidson Daniel Silva cbc6892084
[NEW] Unify members section (#4399)
* create useUserPermissions hook

* create CheckRadioButton component

* fix return

* create MembersSection component

* apply MembersSection and header filter

* fix re-render and testID

* fix detox tests

* rename to RadioButton

* move the component closer to the screen

* remove useUserPermissions

* remove theme prop

* migrate to hooks

* fix team permissions

* remove theme prop from UserItem

* remove options prop

* fix Member

* remove commented test

* fixes

* fix for room not joined

* add room members events

* adds empty option

* add members filter and pagination

* clear RoomMembersView

* remove unused styles

* Update app/views/RoomMembersView/index.tsx

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

* wip

* Temp workaround for SearchBox background color

* Rename import

* Fix missing params for 5.0

* Fix e2e tests

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-08-26 10:21:25 -03:00
Reinaldo Neto ccbc84f9a8
[IMPROVE] Remove show message in main thread preference (#4435)
* [IMPROVE] Remove show message in main thread preference

* default settings

* created the get

* fix compare server version

* fix E2E tests

* settings to logged user

* remove constant and get alsosendtochannel from user

* fix send to channel first message

* fix when the alsoSendThreadToChannel is checked

* added list picker user preference

* tweaks in messagebox tmid and detox

* added pt-br and deleted expectToBeVisible id

* reactive alsoSendThreadTOChannel

* fix the behavior when press or long press threads messages

* remove reply in thread from threads

* clean helpers detox

* tweak onMessageLongPress and onSubmit

* Remove unnecessary calculations inside ListPicker

* Fix long press logic

* Fix onReplyInit logic

* fix data_setup at detox for servers greater than 5.0

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-08-25 16:53:19 -03:00
Diego Mello ba15bc9fe6
[NEW] Use Inter font (#4459) 2022-08-23 16:32:51 -03:00
Diego Mello 17be449d4e
[FIX] Jump to message stuck on loading animation (#4410) 2022-08-19 18:14:37 -03:00
Diego Mello e723990e82
Chore: Update Storybook libs to v6 (#4439) 2022-08-19 16:53:40 -03:00
Reinaldo Neto fa72d4cc76
[FIX] Pagination when search by members and fix the duplicated members in a Room's member's list (#4446)
* [FIX] Duplicate members in a Room's member's list

* fix search and pagination

* fix the pagination for server lower than 3.16

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-08-19 14:27:04 -03:00
Reinaldo Neto ded2f3792a
Chore: Hooks app/views/DefaultBrowserView (#4424)
* Chore: Hooks app/views/DefaultBrowserView

* fix type

* minor tweak

* item on new file

* minor tweaks

* minor tweak
2022-08-19 10:46:58 -03:00
Gleidson Daniel Silva 6b3006d29f
[NEW] Persist audio files (#4448)
* downloads and store the audios instead of loading them

* remove unused function
2022-08-19 10:24:29 -03:00
Reinaldo Neto f0ed501450
Chore: Hooks App/share (#4417)
* Chore: Hooks App/share

* getTheme to outside

* update types

Co-authored-by: Gleidson Daniel <gleidson10daniel@hotmail.com>
2022-08-18 20:25:39 -03:00
Reinaldo Neto 3ac10ee860
Chore: Hooks app/views/SelectServerView (#4445)
* Chore: Hooks app/views/SelectServerView

* refactor row_height

* minor tweak
2022-08-18 19:09:25 -03:00
Gleidson Daniel Silva 31a8c3e4fb
[FIX] Add method and id to method calls (#4444)
* add method and id to method calls

* 🧹
2022-08-17 14:45:50 -03:00
Gleidson Daniel Silva 28043a2eb5
Chore: Migrate E2ESaveYourPasswordView to hooks (#4432) 2022-08-17 10:51:40 -03:00
Gleidson Daniel Silva 585e5a0592
Chore: Migrate Touch to hooks (#4422)
* migrate to hooks and fix types

* fix import and remove theme prop

* update tests

* fix touch file name

* wip

* rename

* change to touch

* remove button and change to touch
2022-08-17 10:32:21 -03:00
Diego Mello c4d3af0e00
[FIX] Requests being skipped after reconnecting on onboarding (#4429) 2022-08-17 09:49:13 -03:00
Gleidson Daniel Silva a607980840
[IMPROVE] Set native theme when launching the share extension (#4430) 2022-08-16 17:20:28 -03:00
PetMoln c6e31df3e4
[FIX] Can't connect to RC through Gitlab Oauth (#4421)
[FIX] Can't connect to RC through Gitlab Oauth

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-08-12 09:35:55 -03:00
Reinaldo Neto 0c8177e025
[FIX] Text composer is pushing modals outside the screen on Android's tablet (#4393)
* [FIX] Text composer is pushing modals outside the screen

* added isLandscape

* refactor useKeyboard

* refactor landscape
2022-08-11 15:50:34 -03:00
Reinaldo Neto 999e8ab660
Regression: Room header not showing room type when not joined (#4427) 2022-08-11 15:29:24 -03:00
Reinaldo Neto 2a522158ad
Chore: Ignore icons on Prettier (#4426) 2022-08-11 15:16:04 -03:00
Gleidson Daniel Silva 69349dee6e
Chore: Migrate E2EEnterYourPasswordView to hooks (#4423)
* migrate E2EEnterYourPasswordView to hooks

* remove navigation options

* minor tweak

Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
2022-08-11 11:59:40 -03:00
Gleidson Daniel Silva 92111afa6a
Chore: Migrate E2EHowItWorksView to hooks (#4416)
* remove navigation obligatory

* remove the obliglatory to use theme with the withTheme HOC

* migrate E2EHowItWorksView to hooks

* remove navigate options

* adds non-null assertion because theme is injected
2022-08-11 11:50:03 -03:00
Gleidson Daniel Silva a101d319e5
Chore: Migrate WithoutServerView to hooks (#4415)
* migrate WithoutServerView to hooks

* remove navigation options

* minor tweak

Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
2022-08-11 11:41:18 -03:00
Gleidson Daniel Silva 6b8086aa55
[FIX] Markdown's ListItem not using the entered index (#4388)
* fix ordered list number

* update snapshot
2022-08-11 11:30:11 -03:00
Gleidson Daniel Silva 89820b2bec
[NEW] Create useEndpointData for call endpoints using hooks (#4342)
* create basic useEndpointData for call endpoints using hooks

* remove cache

* create base for useEndpointData test

* create basic useEndpointData for call endpoints using hooks

* remove cache

* create base for useEndpointData test

* fix preset

* update tests

* change order

* create ErrorResult and add error to return

* update tests
2022-08-09 09:28:14 -03:00
Gleidson Daniel Silva 2b08b683d7
Chore: Upgrade React Native to 0.68.2 (#4316)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-08-08 18:02:08 -03:00
Reinaldo Neto e38aedcbff
[IMPROVE] Add emoji picker to iOS (#4366)
* [IMPROVE] Add emoji picker to iOS

* clean left and right buttons

* fix the redux in emojipicker

* fix behavior when emoji keyboard is openning

* added isIOS

* fix show reactions when emoji is open

* minor tweak

* add provider

* fix baseurl

* minor tweak

* create closeEmojiAndAction and added to record

* fix actionsheet for omnichannel

* fix action sheet

* fix close emoji when navigate to other screen

* added iactionsheetprovider to roomview

* clean variables

* fix theme

* close the emojikeyboard when click on message

* apoint package.json to new pr

* fix branch

* fix package.json
2022-08-08 15:38:01 -03:00
Danish Ahmed Mirza a4f171a12d
[NEW] Redesign reactions list (#4346) 2022-08-03 13:32:16 -03:00
Gleidson Daniel Silva 2c32be6e51
[FIX] Fix display order render on RoomListView (#4392) 2022-08-01 13:42:10 -03:00
Gleidson Daniel Silva 41dbbf4d4b
Chore: Migrate NotificationPreferencesView to hooks (#4327)
* add none option

* create showErrorAlertWithEMessage function

* migrate NotificationPreferencesView to hooks and improves overall

* change icon to right

* fix navigation options

* remove none

* fix types

* remove memo

* cleaning

* switching to destructuring

* add observe for hideUnreadStatus

* fix desktop options

* remove unused options

Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
2022-08-01 13:35:05 -03:00
Reinaldo Neto d7f7b1da9f
[FIX] iFrame login takes user to blank screen (#4389) 2022-07-29 01:18:42 -03:00
Gleidson Daniel Silva a965465af3
[FIX] Add support to non ascii url characters on ios devices (#4364)
* add support to non ascii url caracters on ios

* rename module and add tests

* remove last slice
2022-07-28 10:36:40 -03:00
Gleidson Daniel Silva 376c8e8252
[IMPROVE] Add support to Linebreak and Katex on markdown (#4361)
* fix enableMessageParser logic

* create LineBreak component

* fix code style

* add KaTeX support

* add Katex and Inline Katex stories

* update snapshots

* add color prop

* update snapshot

* update snapshot
2022-07-20 18:02:18 -03:00
Gleidson Daniel Silva 1c1dfe5af1
[FIX] Share Extension shows a server that has no user logged in (#4336)
* [FIX] Share Extension shows a server that has no user logged in

* set server after login
2022-07-20 17:49:51 -03:00
Reinaldo Neto 2f51224f3f
[FIX] Rename done to save on Status View (#4363) 2022-07-15 17:44:24 -03:00
Reinaldo Neto 5a7f77a159
[FIX] User status update with hooks (#4362)
* [FIX] User status update with hooks

* add log

* fix dispatch

Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2022-07-15 17:18:36 -03:00
Reinaldo Neto fe7722ca10
[IMPROVE] Support for tag request close when is obligatory to close Omnichannel's Channel (#4353)
* [IMPROVE] Support for tag request close

* clean up

* refactor isObrigatory and value

* fix obligatory

* removed onSubmitEditing

* create closelivechatview

* Refactor Close Omnichannel from ActionSheet to a new Screen

* Fix navigation

* fix screen title

* back to before actionsheetwithinput

* added string in pt-br

* refactor canSubmit

* fix the method closeRoom

* comment of server's version

* some tweaks

* Update app/lib/services/restApi.ts

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-07-15 17:06:27 -03:00
Gleidson Daniel Silva 08c368c41e
[IMPROVE] Set native theme when launching the app (#4365) 2022-07-15 13:39:07 -03:00
Reinaldo Neto 92d16b52e1
Regression: Status of Omnichannel's Icon isn't working in RoomsListView (#4356)
* Regression: Status of Omnichannel's Icon isn't working in RoomsListView

* clean
2022-07-14 14:18:45 -03:00
Danish Ahmed Mirza dd48402214
[IMPROVE] Migrate UIKit/MultiSelect to ActionSheet (#4255)
* Migrate UIKit/MultiSelect to ActionSheet

* Fix no options initially on CreateDiscussion  view

* Change backgroundColor and use colors from useTheme

* Define missing types

* onSearch function for the ActionSheet

* Add onClose function to the ActionSheet and use colors from useTheme

* fix theme and bottomSheet

* fix actionSheet

* fix style

Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2022-07-13 16:31:58 -03:00
Diego Mello 785ae0325b
Chore: Update icon set (#4355) 2022-07-13 14:09:15 -03:00
Gleidson Daniel Silva cc6a403bf7
[FIX] Room header not updating when room type changes (#4330) 2022-07-06 17:08:50 -03:00
Gleidson Daniel Silva e39919094e
[FIX] User status update (#4333) 2022-07-06 17:05:13 -03:00
Diego Mello 30d3b0b9f9
[FIX] Markdown not rendering emojis correctly on server version 5.0.0 (#4343) 2022-07-06 17:01:33 -03:00
Gleidson Daniel Silva bf7473c39b
[FIX] Add hoistNonReactStatics to withActionSheet hoc (#4331) 2022-07-06 16:57:00 -03:00
Diego Mello 37db9b208d
[IMPROVE] Make message parser default (#4339) 2022-07-06 12:43:50 -03:00
Alex Junior 1027b6c9e6
[IMPROVE] Use UI Elements from react-navigation (#4314)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-07-06 10:23:02 -03:00
Gleidson Daniel Silva 2e8b7d7755
[FIX]: Add showInput prop to show actionSheetContent without input (#4335) 2022-07-05 17:41:42 -03:00
Diego Mello f5167a2c94
Revert "[FIX] Form re-rendering on RoomInfoEditView when app receives newer data from stream (#4220)" (#4340)
This reverts commit d47320733a.
2022-07-04 18:05:58 -03:00
Diego Mello 3072bbd5b3
Revert "Chore: Migration to Hooks - Markdown (#4264)" (#4338)
This reverts commit 4fd0084bc1.
2022-07-04 15:10:14 -03:00
Diego Mello e48527b9be
Regression: missing comma on i18n file (#4320) 2022-06-27 19:33:44 -03:00
Alex Junior 4fd0084bc1
Chore: Migration to Hooks - Markdown (#4264)
* chore: migrate TextInput from class to functional

* changing from themes[theme] to colors

* removing markdown theme props from other files

* adding a force update and fix a stories

* adding testID and tests for markdown

* fixing some interfaces

* minor tweak

Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2022-06-27 18:27:22 -03:00
Reinaldo Neto 18c44178d7
[IMPROVE] Migrate away from react-native-prompt-android to action sheet (#4300)
* Chore: Migrate away from react-native-prompt-android to action sheet

* fix header provile view with action sheet

* finished change password

* Close livechat and removed closeRoom dispatch

* remove lib react-native-prompt-android

* fix right buttons

* fix profile view in tablets

* fix action and room action for tablets

* remove onSubmitEditing

* fix keyboard for android tablet in landscape

* create base for actionSheet containers

* migrate EnterPasswordSheet to base

* migrate to base component

* fix colors and copy

* remove secure entry

* fix onSubmit

* fix android animation

Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2022-06-27 16:03:24 -03:00
Alex Junior 1e9ae6e157
Chore: Migration to Hooks - FormTextInput (#4256)
* chore: migrate TextInput from class to functional

* removing the theme props

* adding tests for the FormTextInput

* minor tweak

* applying changes requested

* changing the way we import/export the FormTextInput and TextInput

* removing left comments

* minor tweak

* fix import

Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2022-06-27 15:46:59 -03:00
Gleidson Daniel Silva 674f0285f6
Chore: Migrate RoomItem to Hooks (#4310)
* migrate roomItem to ts and fix some types

* remove unnecessary verification

* fix types

* fix SubscriptionType

* review

* remove theme prop driling and change file to tsx

* Fix component not re-rendering

* Remove a few props from attrs

* Remove accessibilityLabel state

* Fix propsAreEqual

* Fix cleanup

* Remove ts-ignore

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-06-27 15:23:43 -03:00
Alex Junior 4b25fde8f6
Chore: Upgrade react-native-vector-icons from 8.1.0 to 9.1.0 (#4175)
* chore: upgrade `react-native-vector-icons` from 8.1.0 to 9.1.0

* all this storyshot added this `selectable: false`

* reversing file committed by mistake

* reverting the `cocoapods` version to the develop version.

* updating some snaps after merge with develop

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-06-27 15:15:15 -03:00
Gleidson Daniel Silva 58a15b23b5
[NEW] Basic support for Video Conf (#4307)
* create livechat video conf feature

* add handler to call url

* remove webview and change to openUrl

* Checking settings

* stash

* add action sheet on click init and ad more handlers

* fix logic and call to create a video conf

* change JitsiMeetView from InsideStack to ChatStack to remove modal animation

* fix error logic

* fix stack

* fix comma

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-06-27 15:04:20 -03:00
lingohub[bot] fc0d7e2ed3
Language update from LingoHub 🤖 on 2022-06-27Z (#4319)
Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub

Easy language translations with LingoHub 🚀

Co-authored-by: Robot LingoHub <robot@lingohub.com>
2022-06-27 09:51:55 -03:00
Danish Ahmed Mirza 44ac06ad7d
[NEW] ImageViewer animations using new API from `react-native-gesture-handler` and `react-native-reanimated` v2 (#4221)
* Update ImageViewer to reanimated and RNGH v2 API

* Move styles outside the component

* Fix issues with pinch gesture

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-06-23 17:19:42 -03:00
Reinaldo Neto 8563453735
[FIX] Announcement field triggers password suggestion (#4305)
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-06-23 17:10:48 -03:00
Gleidson Daniel Silva 303d127949
[FIX] Change password not working on some cases (#4312)
* create iTotp enum

* migrate change user profile to method

* Fix minor i18n issues

* Use saveUserProfileMethod from Services

* Catch cancel event from TwoFactor modal

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-06-23 16:59:57 -03:00
Reinaldo Neto bc09527d78
Chore: Migrate LoginServices to Hooks (#4216)
* Chore: Migrate LoginServices to Hooks

* fix lint

* change theme to colors

* back the separator as props

* refactor loginservice to folder

* refactor component login services

* Tests to LoginService's components

* finished loginservices

* Chore: Migrate LoginServices to Hooks

* fix lint

* change theme to colors

* back the separator as props

* refactor loginservice to folder

* refactor component login services

* Tests to LoginService's components

* finished loginservices

* fix location

* refactor TLoginStyle

* fix imports

* refactor lets to ref

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-06-23 09:56:15 -03:00
Gleidson Daniel Silva a5a5c52058
Chore: Migrate containers/Toast to hooks (#4309) 2022-06-22 09:32:57 -03:00
Gleidson Daniel Silva 5f248ebeb5
[NEW] Delete my account (#4219)
* create new delete account button

Co-Authored-By: Danish Ahmed Mirza <danishmirza30602@gmail.com>

* change modal to action sheet

* better naming

* remove ? from translation

* update translations

* change to new figma layout

* fix export

* remove unused state

* add new text input to base input

* clean up

* update bottom sheet and create a mock

* remove unecessary bracket and fix type

* fix header

* migrate buttons to action sheet

* fix imports

* update yarn.lock

* add separator to styles

* add ternary verification

* minor tweaks: keyboard for landscape android tablet, interface IactionSheetProvider and remove navigation options to get ismasterdetail from redux, fix jest setup

* fix colors

* disconnect from sdk when delete the account

* update snapshot

Co-authored-by: Danish Ahmed Mirza <danishmirza30602@gmail.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
2022-06-22 09:24:25 -03:00
Reinaldo Neto cd7e9e22f8
[FIX] Unresponsive status icons on Directory View and Share View (#4303) 2022-06-21 16:44:02 -03:00
Reinaldo Neto 9985e9baf3
[FIX] Remove servers offline from server list (#4286) 2022-06-21 16:40:29 -03:00
Danish Ahmed Mirza a5a45f533b
[FIX] Rooms are losing the time after search (#3722)
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-06-21 16:35:51 -03:00
Reinaldo Neto 28ee43f817
[FIX] Avatar pixel size (#4285)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-06-21 16:23:55 -03:00
Gleidson Daniel Silva 6b15ace933
[FIX] In some discussions you haven't joined yet, messages are not being loaded. (#4269)
* fix discussions not loadings

* Adds one more layer of verification to get the correct room type
2022-06-14 13:12:44 -03:00
Reinaldo Neto fa90e4d456
Chore: Hooks - create usePermissions (#4190)
* Chore: Hooks - create custom hook usePermissions

* minor tweak

* Change usage of usePermissiosn on LivechatEditView

* Create getPermissionsSelector

* Simplify selector

* Simplify userRoles

* First render with permissions array length of false

* Move roles state closer to each other

* useSubscription (not working, but looking cool)

* at least it's working now

* working

* cleanup

* solve ts return

* Change it to useSubscriptionRoles only and check for diff on the state

* Remove IAppState

* Minor tweak to work properly useSubscriptionRoles

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-06-13 17:36:54 -03:00
Reinaldo Neto a16c271f1f
Chore: Hooks - migrate RoomHeader to hook (#4200)
* roomHeader hook

* minor tweak

* Fix ts stuffs

* fix colors

* refactor
2022-06-13 17:16:20 -03:00
Gleidson Daniel Silva 74a82974f0
[FIX] Fix require cycle for appGroupPath (#4298)
* fix require cycle for appGroupPath

* add console log
2022-06-13 10:58:00 -03:00
Reinaldo Neto 79cd150231
[NEW] Option to show mentions badge (#4265)
* [IMPROVE] Option to show mentions badge

* fix the local database and mergeSubscriptions, missing the state in notificationPrefView

* finished the hideMentions

* fix the string version
2022-06-13 10:24:54 -03:00
Reinaldo Neto a21c797886
[FIX] Searching for users when creating Discussions (#4267) 2022-06-13 10:15:22 -03:00
Danish Ahmed Mirza 5899b1f789
[NEW] Go to RoomView if the mentioned #channel is already joined (#4204)
* [NEW] Go to RoomView if the mentioned #channel is already joined

* Update stories and fix lint errors

* Use getSubscriptionByRoomId

* Fix channel name issue

* Use goRoom

* add jest-expo to jest preset

* update snapshot

Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2022-06-10 17:33:48 -03:00
Gerzon Z 20a03611a7
[NEW] Call to Action buttons for Omnichannel (#4060)
* add: kebab and bottom sheet for omnichannel

* update: `RoomActionsView`

* chore: add canned responses to MessageBox

* chore: add omnichannel permissions to RightButtons

chore: missing changes to previous commit on RoomView

* chore: make icon available on first re-render after joining the room

* refactor: omnichannel permissions logic outside RightButtons

* refactor: extract omnichannel permissions' logic from RoomActionsView

* fix: omnichannel permissions on RightButton component

* add: omnichannelPermissions to RoomActions route props

* update: RoomView

* remove: setOmnichannelPermissions function

* refactor: `omnichannelPermissions` to object

* refactor: extract `on-hold` Omnichannel to `RoomView`

* add: `canPlaceLivechatOnHold` to `Omnichannel`s actions

* update: type for `showActionSheet`

* update: canned responses permission on

* fix: place on-hold permission not updating properly

* update: validation for on-hold

remove: unused variable

* remove: unnecessary param

* update: MessageBox

* fix: Omnichannel permissions on taking chat

* undo: comment on Reactotron

* Fix place chat on-hold

* fix setOptions in messageBox

* resolve lint

* change return to return to waiting line

* remove joined

* fix console.log

* fix kebab button

* fix subscription to room outside of db

Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
2022-06-09 11:42:12 -03:00
Diego Mello d47320733a
[FIX] Form re-rendering on RoomInfoEditView when app receives newer data from stream (#4220) 2022-06-09 10:01:58 -03:00
Danish Ahmed Mirza 748e87acf3
Chore: Migrate containers/Avatar to hooks (#4139)
* Migrate containers/Avatar to hooks

* Migrate to `useSelector` hook and `useRef`

* Change user object prop to primitive type

* fix re-render and update snapshot

* fix lint

* update pods

Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2022-06-06 12:33:36 -03:00
Alex Junior 614d9afe65
Chore: Evaluate helpers and utils - Typescript (#4146) 2022-06-06 11:17:51 -03:00
Alex Junior e212a3c946
[IMPROVE] Redesign search box component (#4195)
Co-authored-by: Danish Ahmed Mirza <danishmirza30602@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-06-06 10:53:02 -03:00
Danish Ahmed Mirza 02c1bc50b9
[NEW] Update room item animations (#4024)
* Upgrade react-native-gesture-handler to 2.3.0

* Update room item animations to reanimated v2

* Add Parallax animation on fav and hide buttons and additional swipe gesture to toggleFav

* Fix tests

* Ignore typescript error for setTimeout function

* Update pods

* Fix blank area on swiping all the way right/left

* Fix Action Buttons on devices with notch

* Update snapshot

* Use colors from useTheme

* Destructure props

* Proper types for nativeEvent and event

* Remove toggleFav gesture

* Clean bits

* Fix lint error

* Fix position of Room Action Buttons on MasterDetail

* Remove comment

* Update animations logic

* Add haptic feedback on swipe

* Add haptic feedback on unswipe gesture

* Update react-native-gesture-handler to 2.4.2

* update pods

* Migrating off RNGHEnabledRootView

* Update types to ReturnType<typeof setTimeout>

Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2022-06-06 10:23:49 -03:00
Gleidson Daniel Silva 329e74b720
[FIX] Unify attachment rendering logic (#4260)
* fix verification adding fields logic

* update snapshot

* Change order for both logics

* Cleanup

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-06-02 16:58:42 -03:00
Alex Junior 6220375f7b
Chore: upgrade react navigation to 6.0.10 version (#4120) 2022-06-01 16:46:37 -03:00
Reinaldo Neto 496d3f2ceb
[FIX] Search Message stops showing the correct result (#4253) 2022-05-31 14:37:42 -03:00
Gerzon Z 11c8510398
[FIX] User status update (#3961)
* update: `setCustomStatus` function

* update: `StatusView`'s `setCustomStatus`

* update: `setCustomStatus` function

* update: `StatusView`'s `setCustomStatus`

* refactor: `submit` function

remove: setCustomStatus
update: logEvent

* remove: failed request logic

* fix detox test

Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
2022-05-31 13:50:10 -03:00
Gleidson Daniel Silva c85fd0ba99
Chore: Update react-native-fast-image from 8.2.0 to 8.5.11 (#4210)
* upgrade react-native-fast-image

* change import to react-native-fast-image

* bump version

* update path from lib

* fix import
2022-05-31 13:08:18 -03:00
Reinaldo Neto a527b320e9
[FIX] Migrate autoTranslate.translateMessage to REST API (#4029)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-05-27 14:33:21 -03:00
Alex Junior 1ce7d5cf6a
Regression: right icons overlapping when users name is long (#4224)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-05-27 14:27:43 -03:00
Alex Junior 3265a8395d
Regression: Fix load starred, mentions, pinned and files messages (#4214) 2022-05-27 14:22:47 -03:00
Reinaldo Neto a82e3e6c1a
[FIX] Navigate to MarkdownTableView using tablets (#4222)
* [FIX] Navigate to MarkdownTableView using tablets

* [FIX] Navigate to MarkdownTableView using tablets

* fix lint

* update yarn.lock

Co-authored-by: Alex Junior <alexalexandrejr@gmail.com>
2022-05-27 14:18:51 -03:00
Reinaldo Neto 53aaae5d82
[FIX] Showing blank screen on share extension if the user is not logged in (#4207)
* [FIX] Redirect not logged users to WithoutServersView

* minor tweak

* [FIX] Redirect not logged users to WithoutServersView

* minor tweak

* fix the init

* update yarn.lock

Co-authored-by: Alex Junior <alexalexandrejr@gmail.com>
2022-05-27 14:11:26 -03:00
Danish Ahmed Mirza 992e43815d
[FIX] Closing animation of action sheet on item press (#4223) 2022-05-26 15:13:34 -03:00
Reinaldo Neto bc34706f48
Chore: Update Detox to 19.7.0 (#4215)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-05-26 14:10:24 -03:00
Reinaldo Neto 5101ab4769
Chore: update @rocket.chat/ui-kit to 0.31.11 (#4203)
* Chore: Update UiKit

* fix interfaces and plain_text and mrkdwn
2022-05-26 11:07:17 -03:00
Reinaldo Neto 41721757d0
Chore: Evaluate SearchMessagesView - TypeScript (#4122)
* Chore: Evaluate SearchMessagesView - TypeScript

* minor tweaks

* Update app/views/SearchMessagesView/index.tsx

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

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-05-23 14:46:30 -03:00
Reinaldo Neto b1ffffb04b
Chore: Migration to Hooks - QueueListView (#4171)
* Chore: Migration to Hooks - QueueListView

* minor tweaks

* minor tweaks
2022-05-23 14:33:58 -03:00
Gleidson Daniel Silva aa3f963af6
[FIX] Fix delete room on team's channel list (#4191)
* fix delete room

* update pods
2022-05-23 14:16:17 -03:00
Alex Junior 8178f7cf87
[FIX] Applying same color to the time on replied messages (#4211) 2022-05-23 13:37:56 -03:00
Reinaldo Neto d4bee9254d
Regression: Click to join call button (#4206) 2022-05-23 10:24:33 -03:00
Alex Junior 4fc8e5e9a4
[FIX] Unify RoomItem UpdatedAt and Message time styles (#4205) 2022-05-20 14:56:07 -03:00
Danish Ahmed Mirza 6384d60efc
Chore: Migrate containers/Button to Typescript and Hooks (#4071) 2022-05-20 13:37:57 -03:00
Alex Junior e38cfa61fe
Chore: Upgrade react-native-document-picker from 5.2.0 to 8.1.0 (#4172)
* chore: upgrade `react-native-document-picker` from 5.2.0 to 8.1.0

* change `DocumentPicker.pick` to `DocumentPicker.pickSingle`
2022-05-20 00:01:34 -03:00
Alex Junior 469c04e90a
Chore: Evaluate e2e screens - TypeScript (#4142) 2022-05-19 23:42:55 -03:00
Danish Ahmed Mirza f5625cd5f3
Chore: Migrate ActionSheets to `react-native-bottom-sheet` and make them dynamic (#4193)
* Install react-native-bottom-sheet

* Migrate ActionSheets to react-native-bottom-sheet

* Remove unnecessary props

* Minor fixes

* Enable OverDrag

* Fix position in landscape mode

* Prefix interface with I

* Remove react-native-scroll-bottom-sheet

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-05-19 13:53:45 -03:00
Gleidson Daniel Silva 9d514690f0
Chore: Fix websocket connection to sdk (#4182) 2022-05-19 13:43:49 -03:00
Alex Junior 4a84e47cfa
Chore: Evaluate TextInput component (#4181)
* changing from `containers/TextInput` to `containers/TexInput/FormTextInput`

* changing from `presentation/TextInput` to `containers/TexInput/index`

* update storybook

* update status view after merge with develop

* removing `app/containers/__snapshots__/TextInput.stories.storyshot` in favor from `app/containers/TextInput/__snapshots`
2022-05-18 16:17:42 -03:00
Reinaldo Neto 1a52c7dc57
Chore: Evaluate AddChannelTeamView - TypeScript (#4170) 2022-05-17 10:39:21 -03:00
Reinaldo Neto f5051e189d
Chore: Evaluate ModalBlockView - TypeScript (#4124) 2022-05-17 10:22:41 -03:00
Gleidson Daniel Silva be19da54a3
Chore: Evaluate StatusView - TypeScript ++hooks (#4075)
* move statusview to your specific folder

* create showToast helper

* migrate StatusView to hooks

* fix type

* add peer deep to useEffect

* fix lint

* fix error message
2022-05-17 09:42:31 -03:00
Gerzon Z f9394b66e3
Chore: evaluate `RoomsListView` (#4147) 2022-05-16 15:14:04 -03:00
Alex Junior 5cd4186f64
[IMPROVE] Place time after username on message (#4177) 2022-05-15 15:29:07 -03:00
Gleidson Daniel Silva 6dfce40c90
Chore: Create useAppSelector hook (#4189)
* create useAppSelector hook

* migrate useSelector to useAppSelector
2022-05-13 12:01:34 -03:00
Gleidson Daniel Silva 0a7082e2fe
Chore: Evaluate RocketChat v3 (#4155)
* remove roomSub from rocketchat

* remove _setUser

* remove this.activeUsersSubTimeout and IRocketChat imports

* remove this from connect

* remove rocketchat and comment abort controler

* fix lint

Co-authored-by: Alex Junior <alexalexandrejr@gmail.com>
2022-05-13 11:52:37 -03:00
Gleidson Daniel Silva f99ec9f8e3
[FIX] iOS Share Extension not loading on development (#4187)
* remove deviceToken from constructor

* remove old patch to verify if is running on shareExtension

* add share extension verification

* Remove imports from `/notifications/` just to test the share extension

* Revert "Remove imports from `/notifications/` just to test the share extension"

This reverts commit b3492abad413a5a8a6cf3cd027e33044c437c627.

* changes from constructor to a plain function

* update pods

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-05-13 11:37:02 -03:00
Gerzon Z 311b346347
Chore: evaluate `InviteUsersView` (#4100) 2022-05-13 10:02:01 -03:00
Gerzon Z 4d4a5cffd9
Chore: evaluate `MarkdownTableView` (#4104) 2022-05-13 09:57:19 -03:00
Reinaldo Neto 81c6ffce40
Chore: Evaluate RoomInfoView - TypeScript (#4107)
* Chore: Evaluate RoomInfoView - TypeScript

* refactor interfaces
2022-05-11 15:20:59 -03:00
Reinaldo Neto fe84090703
Chore: Evaluate ShareView - TypeScript (#4087) 2022-05-11 14:59:29 -03:00
Reinaldo Neto 59be3b68b8
Chore: Evaluate AddExistingChannelView - TypeScript (#4169) 2022-05-11 14:38:49 -03:00
Reinaldo Neto fb11932d0b
Chore: Evaluate AuthenticationWebView - TypeScript (#4158) 2022-05-11 13:59:57 -03:00
Reinaldo Neto 390516a5b4
Chore: Evaluate AttachmentView - TypeScript (#4161) 2022-05-11 13:42:03 -03:00
Reinaldo Neto 5970d29ee7
Chore: Evaluate AdminPanelView - TypeScript (#4162) 2022-05-11 13:33:27 -03:00
Alex Junior 1d452ed9e6
Chore: Evaluate MessagesView - TypeScript (#4113) 2022-05-10 23:22:17 -03:00
Gerzon Z e233058e22
Chore: evaluate `RoomInfoEditView` (#4095)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-05-10 18:26:06 -03:00
Gerzon Z c9fd7973f0
Chore: evaluate `LegalView` (#4097)
* chore: evaluate LegalView

* remove: `options` from `LegalView` on OutsideStack

* remove: `mapStateToProps` in favor of `useSelector`
2022-05-10 18:19:57 -03:00
Gerzon Z 9320d1e05e
Chore: evaluate SettingsView (#4090)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-05-10 18:19:06 -03:00
Alex Junior e0bfdee70c
[IMPROVE] Create edited component for edited messages (#4048) 2022-05-10 14:40:08 -03:00
Gerzon Z 6623044344
Chore: Evaluate `TeamChannelsView` (#4088)
* update: `TeamChannelsView`'s interfaces

* update: `TeamChannelsView`'s route params and types

* update: `teamChannels` type

Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2022-05-09 10:21:09 -03:00
Alex Junior abbb97cd84
Chore: Evaluate ThreadMessagesView - TypeScript (#4084) 2022-05-06 23:34:58 -03:00
Alex Junior 55d66c85db
Chore: Evaluate ProfileView - Typescript (#4091) 2022-05-06 23:11:07 -03:00
Alex Junior 1346154b65
Chore: Evaluate SidebarView - Typescript (#4089) 2022-05-06 22:19:27 -03:00
Alex Junior 8ca73e273a
Chore: Evaluate emoji picker - TypeScript (#4069) 2022-05-06 22:06:08 -03:00
Gerzon Z 88b4a3f672
Chore: evaluate `ThemeView` (#4086)
* chore: evaluate `ThemeView`

* update: `IThemeViewProps` to extend `IBaseScreen`

* update: `ThemeView` interface

* update: dependency array

* update: use `useLayoutEffect` instead
2022-05-05 11:24:36 -04:00
Gleidson Daniel Silva 305f360b40
[FEAT]: Request current passcode before enter "Screen lock" screen (#4052)
* move auth to handleLocalAuthentication function

* add support to close ScreenLockedView

* create useServer hook

* add check to verify if you have a password before entering the screen

* fix import
2022-05-03 17:29:00 -03:00
Danish Ahmed Mirza 2077671761
Chore: Migrate containers/Loading to `reanimated` v2 and Hooks (#4073)
* Chore : Clean `Loading` component and migrate to reanimated v2

* Remove theme prop

* Use colors from useTheme and PixelRatio for image

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
2022-05-03 17:15:16 -03:00
Samay Kothari 9d0b659097
[FIX] Messages showing URL preview on Room Actions (#4065)
* using database query instead of Rocketchat search api to get message search results

* getting search data from server then converting it into the format as required for message rendering

* fixing some redundant changes

* remove ts-ignore

* removing redundant statements

* url preview is visible when we see messages in pinned, mentions and starred messages

Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
2022-05-03 15:52:56 -04:00
Gerzon Z b006fc4358
Chore: evaluate `JitsiMeetView` (#4103) 2022-05-03 14:17:00 -04:00
Gerzon Z d720b5aca9
Chore: evaluate `ForgotPasswordView` (#4106) 2022-05-03 12:33:35 -04:00
Gerzon Z d277788dc4
Chore: evaluate `AuthLoadingView` (#4102)
* chore: evaluate `AuthLoadingView`

* remove: `mapStateToProps`, `connect` and interface
2022-05-03 12:25:18 -04:00
Gerzon Z 0dc34f1eca
Chore: evaluate `DefaultBrowserView` (#4105) 2022-05-03 12:12:43 -04:00
Gerzon Z 784b016736
chore: evaluate `LoginView` (#4098) 2022-05-03 12:05:01 -04:00
Gerzon Z 99409d1af4
chore: evaluate `NewServerView` (#4101) 2022-05-03 11:48:02 -04:00
Gerzon Z 5dea514751
chore: evaluate `PickerView` (#4096) 2022-05-03 11:13:53 -04:00
Gerzon Z ed63f69a2d
chore: evaluate `SendEmailConfirmationView` (#4093) 2022-05-03 11:06:02 -04:00
Gerzon Z edfeeb80d3
Chore: Unsupported system messages (#4047)
* chore: unsupported system messages

* add: Livechat's ignored system messages

* add: `IGNORED_LIVECHAT_SYSTEM_MESSAGES`

* add: support for Livechat's system messages

* remove: `console.log`
2022-05-03 10:27:20 -04:00
Gleidson Daniel Silva 06a0c4f730
Regression: Fix badge count logic on iOS (#4154)
* fix badge count logic

* set count default value
2022-05-03 08:53:18 -03:00
Reinaldo Neto bd55fe44ba
Chore: Evaluate NewMessageView - TypeScript (#4115)
* Chore: Evaluate NewMessageView - TypeScript

* minor tweak
2022-05-02 23:43:30 -03:00
Reinaldo Neto 5d29fcad53
Chore: Evaluate RegisterView - TypeScript (#4114) 2022-05-02 23:21:43 -03:00
Reinaldo Neto d24e59669a
Chore: Evaluate ScreenLockConfigView - TypeScript (#4094) 2022-05-02 23:14:49 -03:00
Reinaldo Neto 57154101bd
Chore: Evaluate SecurityPrivacyView - TypeScript (#4092) 2022-05-02 23:06:37 -03:00
Reinaldo Neto 5f1ac0b523
Chore: Evaluate SetUsernameView - TypeScript (#4082) 2022-05-02 22:53:19 -03:00
Reinaldo Neto 1118ae6fae
Chore: Evaluate UserNotificationPreferencesView - TypeScript (#4079) 2022-05-02 22:45:31 -03:00
Reinaldo Neto 3ce32bbfd8
Chore: Evaluate UserPreferencesView - TypeScript (#4078) 2022-05-02 22:34:56 -03:00
Reinaldo Neto 82bca54575
Chore: Evaluate WorkspaceView - TypeScript (#4077) 2022-05-02 22:27:33 -03:00
Reinaldo Neto 83fb5ce7fb
Chore: Evaluate LivechatEditView - TypeScript (#4125) 2022-05-02 22:19:28 -03:00
Reinaldo Neto 21a6fcee87
Chore: Evaluate SelectServerView - TypeScript (#4118) 2022-05-02 22:13:03 -03:00
Reinaldo Neto 10c4fddd61
Chore: Evaluate ShareListView - TypeScript (#4117) 2022-05-02 22:06:19 -03:00
Reinaldo Neto 888bcae48e
Chore: Evaluate RoomMembersView - TypeScript (#4116)
* Chore: Evaluate RoomMembersView - TypeScript

* evaluate show action sheet

* fix tsubscriptionmodel
2022-05-02 21:48:08 -03:00
Reinaldo Neto fe1b8b75bd
Chore: Evaluate CannedResponsesListView - TypeScript (#4149) 2022-05-02 21:30:20 -03:00
Reinaldo Neto 243d016bf1
Chore: Evaluate CannedResponseDetail - TypeScript (#4150) 2022-05-02 21:23:03 -03:00
Reinaldo Neto 93c3c5f3a9
Chore: Evaluate RoomActionsView - TypeScript (#4148) 2022-05-02 20:13:39 -03:00
Reinaldo Neto a84d4e9534
Chore: Evaluate RoomView - TypeScript (#4134)
* Chore: Evaluate RoomView - TypeScript

* fix messagebox and list refs

* fix the refs

* refactor other refs

* remove any from privates

* storyshot tweak
2022-05-02 19:58:23 -03:00
Reinaldo Neto cb1dabbc16
Chore: Evaluate CreateDiscussionView - TypeScript (#4133) 2022-05-02 19:48:29 -03:00
Alex Junior d99b31849a
Chore: Evaluate Icon - Typescript (#3982)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-05-02 16:21:15 -03:00
Alex Junior b63f514df7
Chore: Evaluate NotificationPreferencesView - Typescript (#4099) 2022-05-02 15:24:17 -03:00
Alex Junior 43e9964b7b
Chore: Evaluate Create Channel - TypeScript (#4144) 2022-05-02 15:11:41 -03:00
Alex Junior 1efd6a9a65
Chore: Evaluate AutoTranslate- TypeScript (#4145) 2022-05-02 14:59:49 -03:00
Reinaldo Neto ee3e569512
Chore: Evaluate ReadReceiptView - TypeScript (#4123) 2022-05-02 11:17:55 -03:00
Reinaldo Neto 8ac38a2e04
Chore: Evaluate SelectedUsersView - TypeScript (#4121) 2022-05-02 10:09:10 -03:00
Reinaldo Neto e5f140e231
Chore: Evaluate SelectListView - TypeScript (#4119)
* Chore: Evaluate SelectListView - TypeScript

* minor tweak
2022-05-02 09:40:19 -03:00
Reinaldo Neto 8896370a6c
Chore: Evaluate DiscussionsView - TypeScript (#4129) 2022-05-02 09:23:57 -03:00
Reinaldo Neto a1e672df0e
Chore: Evaluate DisplayPrefsView - TypeScript (#4127)
* Chore: Evaluate DisplayPrefsView - TypeScript

* minor tweak
2022-05-02 09:12:41 -03:00
Reinaldo Neto f04b15a432
Chore: Evaluate ForwardLivechatView - TypeScript (#4126)
* Chore: Evaluate ForwardLivechatView - TypeScript

* minor tweaks
2022-05-02 09:03:55 -03:00
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 08271f6114
Regression: Users search on `CreateDiscussionView` (#4112)
* fix: users search on `CreateDiscussionView`

* chore: increased readability for `getUsers` function
2022-04-26 14:15:29 -04: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
Gleidson Daniel Silva a4090782f5
Regression: Fix setBadgeCount import (#4074) 2022-04-20 11:42:59 -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 3c53d48a3e
[FIX] Omnichannel chat is broken the first time is taken (#4037)
* [FIX] Omnichannel chat is broken the first time is taken

* refactor how to get a room from db
2022-04-18 16:35:50 -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
Diego Mello 397cd3d9b8
[FIX] Stop showing native push notification when in foreground (#4059) 2022-04-14 15:24:04 -03:00
Reinaldo Neto e28f7ac4b6
[FIX] Send upload inside a thread (#4053) 2022-04-14 14:40:37 -03:00
Reinaldo Neto 456d017475
Chore: Migrate REST API - getSupportedLanguagesAutoTranslate to Typescript (#4020) 2022-04-14 14:29:32 -03:00