Commit Graph

303 Commits

Author SHA1 Message Date
Reinaldo Neto 9bb1bdb7b8 [FIX] Remove nested room navigation (#4702)
* reset from room to room

* jump from room to room it's fine

* threads ipad

* fix ts roomslistview

* remove params

* fix the ipad highlight

* jump to a message from a thread to main room

* the reset within the goRoom

* create channel

* changes in canned response

* fix discussion navigation

* navigation newmessageview to users

* fix go room from room info view

* inappnotification, deeplinking, room.js

* change from room.rooms to room.subscribed

* minor tweak jumptomessage

* fix add existing channel to team and fixing test 02 of teams

* keep the same behavior after add existing channel

* keep the same behavior after add existing channel

* clean cosole

* changes requested about the name

* inapp redux to hooks

* added a comment to addexistingchanneltoteam

* minor tweak jumptomessage

* refactor goRoom to add the param popToRoot, also refactor the navigate in deeplinking too

* refactor other places that exist goRoom

* fix the didUpdate

* added in app notification test

* clean js

* minor tweak test
2022-12-02 10:51:02 -03:00
Diego Mello 15e84b878f Merge branch 'single-server' into single-server-4.32 2022-10-17 13:41:36 -03:00
Diego Mello 5828a04aeb
[IMPROVE] Use Android 12 SplashScreen API (#4479) 2022-10-04 10:36:05 -03:00
Diego Mello 6f64babbd6 Merge branch 'single-server' into single-server-4.30
# Conflicts:
#	app/containers/UIKit/HeaderButtons.js
#	app/views/RoomsListView/Header/Header.tsx
#	ios/RocketChatRN.xcodeproj/project.pbxproj
#	yarn.lock
2022-09-12 11:23:19 -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
Diego Mello c4d3af0e00
[FIX] Requests being skipped after reconnecting on onboarding (#4429) 2022-08-17 09:49:13 -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 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
Diego Mello 3650a3fe94 Merge branch 'single-server' into single-server-4.29
# Conflicts:
#	android/app/build.gradle
#	android/app/src/main/assets/fonts/custom.ttf
#	app.json
#	app/AppContainer.tsx
#	app/actions/actionsTypes.ts
#	app/actions/login.ts
#	app/actions/room.ts
#	app/containers/ActionSheet/ActionSheet.tsx
#	app/containers/ActionSheet/BottomSheetContent.tsx
#	app/containers/ActionSheet/Button.ts
#	app/containers/ActionSheet/Handle.tsx
#	app/containers/ActionSheet/Provider.tsx
#	app/containers/ActionSheet/styles.ts
#	app/containers/AppVersion.tsx
#	app/containers/Avatar/Avatar.tsx
#	app/containers/Avatar/index.tsx
#	app/containers/Avatar/interfaces.ts
#	app/containers/CustomIcon/index.tsx
#	app/containers/CustomIcon/mappedIcons.js
#	app/containers/CustomIcon/selection.json
#	app/containers/DirectoryItem/index.tsx
#	app/containers/EmojiPicker/CustomEmoji.tsx
#	app/containers/EmojiPicker/EmojiCategory.tsx
#	app/containers/EmojiPicker/index.tsx
#	app/containers/FormContainer.tsx
#	app/containers/HeaderButton/Common.tsx
#	app/containers/HeaderButton/HeaderButtonItem.tsx
#	app/containers/HeaderButton/HeaderButtonItemBadge.tsx
#	app/containers/ImageViewer/index.ts
#	app/containers/ImageViewer/types.ts
#	app/containers/InAppNotification/NotifierComponent.tsx
#	app/containers/InAppNotification/index.tsx
#	app/containers/KeyboardView.tsx
#	app/containers/List/ListContainer.tsx
#	app/containers/List/ListItem.tsx
#	app/containers/MessageActions/Header.tsx
#	app/containers/MessageActions/index.tsx
#	app/containers/MessageBox/CommandsPreview/Item.tsx
#	app/containers/MessageBox/Mentions/MentionEmoji.tsx
#	app/containers/MessageBox/RecordAudio.tsx
#	app/containers/MessageBox/forceJpgExtension.ts
#	app/containers/MessageBox/index.tsx
#	app/containers/MessageBox/styles.ts
#	app/containers/MessageErrorActions.tsx
#	app/containers/Passcode/Base/Button.tsx
#	app/containers/Passcode/Base/Locked.tsx
#	app/containers/Passcode/PasscodeEnter.tsx
#	app/containers/RoomHeader/RoomHeader.stories.js
#	app/containers/RoomHeader/RoomHeader.tsx
#	app/containers/RoomHeader/__snapshots__/RoomHeader.stories.storyshot
#	app/containers/RoomHeader/index.tsx
#	app/containers/RoomItem/Actions.tsx
#	app/containers/RoomItem/LastMessage.tsx
#	app/containers/RoomItem/RoomItem.tsx
#	app/containers/RoomItem/Title.tsx
#	app/containers/RoomItem/Touchable.tsx
#	app/containers/RoomItem/UpdatedAt.tsx
#	app/containers/RoomItem/Wrapper.tsx
#	app/containers/RoomItem/index.tsx
#	app/containers/RoomItem/interfaces.ts
#	app/containers/RoomItem/styles.ts
#	app/containers/SearchHeader.tsx
#	app/containers/ServerItem/index.tsx
#	app/containers/TextInput/FormTextInput.tsx
#	app/containers/TextInput/TextInput.stories.js
#	app/containers/Toast.tsx
#	app/containers/TwoFactor/index.tsx
#	app/containers/UIKit/DatePicker.tsx
#	app/containers/UIKit/Image.tsx
#	app/containers/UIKit/MultiSelect/Chips.tsx
#	app/containers/UIKit/MultiSelect/Input.tsx
#	app/containers/UIKit/MultiSelect/Items.tsx
#	app/containers/UIKit/MultiSelect/index.tsx
#	app/containers/UIKit/MultiSelect/styles.ts
#	app/containers/UIKit/Select.tsx
#	app/containers/UIKit/index.tsx
#	app/containers/UIKit/utils.ts
#	app/containers/UnreadBadge/index.tsx
#	app/containers/UserItem.tsx
#	app/containers/markdown/AtMention.tsx
#	app/containers/markdown/Emoji.tsx
#	app/containers/markdown/Hashtag.tsx
#	app/containers/markdown/Link.tsx
#	app/containers/markdown/Preview.tsx
#	app/containers/markdown/index.tsx
#	app/containers/markdown/new/BigEmoji.tsx
#	app/containers/markdown/new/Emoji.tsx
#	app/containers/markdown/new/Image.tsx
#	app/containers/markdown/new/Inline.tsx
#	app/containers/markdown/new/Link.tsx
#	app/containers/message/Attachments.tsx
#	app/containers/message/Audio.tsx
#	app/containers/message/Components/CollapsibleQuote/__snapshots__/CollapsibleQuote.stories.storyshot
#	app/containers/message/Discussion.tsx
#	app/containers/message/Emoji.tsx
#	app/containers/message/Image.tsx
#	app/containers/message/Message.tsx
#	app/containers/message/Reply.tsx
#	app/containers/message/Urls.tsx
#	app/containers/message/Video.tsx
#	app/containers/message/index.tsx
#	app/containers/message/interfaces.ts
#	app/containers/message/styles.ts
#	app/definitions/IEmoji.ts
#	app/definitions/IRoom.ts
#	app/definitions/ISubscription.ts
#	app/definitions/rest/v1/users.ts
#	app/definitions/rest/v1/videoConference.ts
#	app/ee/omnichannel/containers/OmnichannelHeader/index.tsx
#	app/ee/omnichannel/lib/index.ts
#	app/ee/omnichannel/lib/subscriptions/inquiry.ts
#	app/ee/omnichannel/sagas/inquiry.js
#	app/ee/omnichannel/views/QueueListView.tsx
#	app/externalModules.d.ts
#	app/i18n/index.ts
#	app/i18n/locales/ar.json
#	app/i18n/locales/de.json
#	app/i18n/locales/en.json
#	app/i18n/locales/es-ES.json
#	app/i18n/locales/fr.json
#	app/i18n/locales/it.json
#	app/i18n/locales/ja.json
#	app/i18n/locales/nl.json
#	app/i18n/locales/pt-BR.json
#	app/i18n/locales/ru.json
#	app/i18n/locales/tr.json
#	app/i18n/locales/zh-CN.json
#	app/i18n/locales/zh-TW.json
#	app/index.tsx
#	app/lib/constants/colors.ts
#	app/lib/constants/defaultSettings.ts
#	app/lib/constants/links.ts
#	app/lib/database/index.ts
#	app/lib/database/model/migrations.js
#	app/lib/database/schema/app.js
#	app/lib/encryption/encryption.ts
#	app/lib/encryption/room.ts
#	app/lib/encryption/utils.ts
#	app/lib/hooks/index.ts
#	app/lib/methods/actions.ts
#	app/lib/methods/callJitsi.ts
#	app/lib/methods/enterpriseModules.ts
#	app/lib/methods/getCustomEmojis.ts
#	app/lib/methods/getPermalinks.ts
#	app/lib/methods/getPermissions.ts
#	app/lib/methods/getRoles.ts
#	app/lib/methods/getSettings.ts
#	app/lib/methods/getSlashCommands.ts
#	app/lib/methods/getThreadName.ts
#	app/lib/methods/getUsersPresence.ts
#	app/lib/methods/helpers/mergeSubscriptionsRooms.ts
#	app/lib/methods/helpers/showToast.ts
#	app/lib/methods/index.ts
#	app/lib/methods/loadMessagesForRoom.ts
#	app/lib/methods/loadMissedMessages.ts
#	app/lib/methods/loadNextMessages.ts
#	app/lib/methods/loadSurroundingMessages.ts
#	app/lib/methods/loadThreadMessages.ts
#	app/lib/methods/logout.ts
#	app/lib/methods/readMessages.ts
#	app/lib/methods/search.ts
#	app/lib/methods/sendFileMessage.ts
#	app/lib/methods/sendMessage.ts
#	app/lib/methods/setUser.ts
#	app/lib/methods/shareExtension.ts
#	app/lib/methods/subscribeRooms.ts
#	app/lib/methods/subscriptions/room.ts
#	app/lib/methods/subscriptions/rooms.ts
#	app/lib/navigation/appNavigation.ts
#	app/lib/navigation/shareNavigation.ts
#	app/lib/notifications/push.ts
#	app/lib/services/connect.ts
#	app/lib/services/restApi.ts
#	app/lib/services/sdk.ts
#	app/presentation/ImageViewer/index.js
#	app/presentation/ImageViewer/index.ts
#	app/presentation/ImageViewer/types.js
#	app/presentation/ImageViewer/types.ts
#	app/reducers/login.ts
#	app/reducers/room.test.ts
#	app/sagas/createChannel.js
#	app/sagas/createDiscussion.js
#	app/sagas/deepLinking.js
#	app/sagas/encryption.js
#	app/sagas/init.js
#	app/sagas/inviteLinks.js
#	app/sagas/login.js
#	app/sagas/messages.js
#	app/sagas/room.js
#	app/sagas/selectServer.js
#	app/sagas/state.js
#	app/share.tsx
#	app/stacks/InsideStack.tsx
#	app/stacks/MasterDetailStack/index.tsx
#	app/stacks/MasterDetailStack/types.ts
#	app/stacks/OutsideStack.tsx
#	app/stacks/types.ts
#	app/views/AddExistingChannelView.tsx
#	app/views/AttachmentView.tsx
#	app/views/AuthenticationWebView.tsx
#	app/views/AutoTranslateView/index.tsx
#	app/views/CannedResponseDetail.tsx
#	app/views/CannedResponsesListView/Dropdown/DropdownItem.tsx
#	app/views/CannedResponsesListView/index.tsx
#	app/views/ChangePasscodeView.tsx
#	app/views/CreateChannelView.tsx
#	app/views/CreateDiscussionView/SelectChannel.tsx
#	app/views/CreateDiscussionView/SelectUsers.tsx
#	app/views/CreateDiscussionView/index.tsx
#	app/views/CreateDiscussionView/interfaces.ts
#	app/views/DefaultBrowserView.tsx
#	app/views/DirectoryView/Options.tsx
#	app/views/DirectoryView/index.tsx
#	app/views/DiscussionsView/Item.tsx
#	app/views/DiscussionsView/__snapshots__/Item.stories.storyshot
#	app/views/DiscussionsView/index.tsx
#	app/views/DisplayPrefsView.tsx
#	app/views/E2EEncryptionSecurityView.tsx
#	app/views/E2EEnterYourPasswordView.tsx
#	app/views/E2ESaveYourPasswordView.tsx
#	app/views/ForgotPasswordView.tsx
#	app/views/ForwardLivechatView.tsx
#	app/views/InviteUsersEditView/index.tsx
#	app/views/InviteUsersView/index.tsx
#	app/views/JitsiMeetView.tsx
#	app/views/LanguageView/index.tsx
#	app/views/LegalView.tsx
#	app/views/LivechatEditView.tsx
#	app/views/LoginView.tsx
#	app/views/MarkdownTableView.tsx
#	app/views/MessagesView/index.tsx
#	app/views/ModalBlockView.tsx
#	app/views/NewMessageView.tsx
#	app/views/NewServerView/ServerInput/Item.tsx
#	app/views/NewServerView/ServerInput/index.tsx
#	app/views/NewServerView/index.tsx
#	app/views/NotificationPreferencesView/index.tsx
#	app/views/PickerView.tsx
#	app/views/ProfileView/index.tsx
#	app/views/RegisterView.tsx
#	app/views/RoomActionsView/index.tsx
#	app/views/RoomInfoEditView/index.tsx
#	app/views/RoomInfoView/index.tsx
#	app/views/RoomMembersView/index.tsx
#	app/views/RoomView/JoinCode.tsx
#	app/views/RoomView/LeftButtons.tsx
#	app/views/RoomView/List/List.tsx
#	app/views/RoomView/List/NavBottomFAB.tsx
#	app/views/RoomView/List/index.tsx
#	app/views/RoomView/LoadMore/__snapshots__/LoadMore.stories.storyshot
#	app/views/RoomView/LoadMore/index.tsx
#	app/views/RoomView/ReactionPicker.tsx
#	app/views/RoomView/RightButtons.tsx
#	app/views/RoomView/UploadProgress.tsx
#	app/views/RoomView/index.tsx
#	app/views/RoomsListView/Header/Header.tsx
#	app/views/RoomsListView/Header/index.tsx
#	app/views/RoomsListView/ServerDropdown.tsx
#	app/views/RoomsListView/index.tsx
#	app/views/ScreenLockConfigView.tsx
#	app/views/ScreenLockedView.tsx
#	app/views/SearchMessagesView/index.tsx
#	app/views/SecurityPrivacyView.tsx
#	app/views/SelectListView.tsx
#	app/views/SelectedUsersView.tsx
#	app/views/SendEmailConfirmationView.tsx
#	app/views/SetUsernameView.tsx
#	app/views/SettingsView/index.tsx
#	app/views/ShareListView/Header/Header.ios.tsx
#	app/views/ShareListView/Header/Header.tsx
#	app/views/ShareListView/index.tsx
#	app/views/ShareListView/styles.ts
#	app/views/ShareView/Header.tsx
#	app/views/ShareView/Preview.tsx
#	app/views/ShareView/Thumbs.tsx
#	app/views/ShareView/index.tsx
#	app/views/ShareView/utils.ts
#	app/views/SidebarView/SidebarItem.tsx
#	app/views/SidebarView/index.tsx
#	app/views/StatusView/index.tsx
#	app/views/TeamChannelsView.tsx
#	app/views/ThemeView.tsx
#	app/views/ThreadMessagesView/Dropdown/DropdownItem.tsx
#	app/views/ThreadMessagesView/Dropdown/index.tsx
#	app/views/ThreadMessagesView/Item.tsx
#	app/views/ThreadMessagesView/__snapshots__/Item.stories.storyshot
#	app/views/ThreadMessagesView/index.tsx
#	app/views/UserPreferencesView/index.tsx
#	app/views/WorkspaceView/ServerAvatar.tsx
#	docs/icons.md
#	e2e/tests/assorted/03-profile.spec.js
#	e2e/tests/assorted/06-status.spec.js
#	e2e/tests/room/03-roomactions.spec.js
#	e2e/tests/room/08-roominfo.spec.js
#	ios/Gemfile.lock
#	ios/Podfile.lock
#	ios/RocketChatRN.xcodeproj/project.pbxproj
#	ios/RocketChatRN/Info.plist
#	ios/ShareRocketChatRN/Info.plist
#	ios/custom.ttf
#	jest.setup.js
#	package.json
#	storybook/stories/HeaderButtons.js
#	storybook/stories/Markdown.tsx
#	storybook/stories/NewMarkdown.js
#	storybook/stories/RoomItem.js
#	storybook/stories/__snapshots__/Avatar.storyshot
#	storybook/stories/__snapshots__/HeaderButtons.storyshot
#	storybook/stories/__snapshots__/List.storyshot
#	storybook/stories/__snapshots__/Markdown.storyshot
#	storybook/stories/__snapshots__/Message.storyshot
#	storybook/stories/__snapshots__/NewMarkdown.storyshot
#	storybook/stories/__snapshots__/RoomItem.storyshot
#	storybook/stories/__snapshots__/ServerItem.storyshot
#	storybook/stories/index.js
#	yarn.lock
2022-07-18 14:48:17 -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
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
Alex Junior 614d9afe65
Chore: Evaluate helpers and utils - Typescript (#4146) 2022-06-06 11:17:51 -03:00
Diego Mello a9214e73b5
Merge 4.28.0 into single-server (#4258) 2022-05-30 19:01:25 -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
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
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
Diego Mello 8f6100d450
Merge 4.27.0 into single-server (#4138) 2022-04-28 15:44:40 -03:00
Gleidson Daniel Silva a4090782f5
Regression: Fix setBadgeCount import (#4074) 2022-04-20 11:42:59 -03:00
Gerzon Z 99ea5d8e2a
Chore: TypeScript migration - move `notifications/push` to `lib/notifications` (#3999)
* chore: move `notifications/push` to `lib/notifications/push`

* update: move `lib/notifications/push` to `lib/notifications`

* remove: push.ios.ts
2022-04-12 12:37:28 -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
Gleidson Daniel Silva e525392713
Chore: Move services and methods away from rocketchat folder (#4033)
* move services to lib

* move methods to lib

* fix imports
2022-04-07 13:53:07 -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
Diego Mello 9a11fb2797
[FIX] Add token expired verification (#3964) 2022-04-06 17:35:53 -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
Diego Mello b3c37ede7e Merge 4.26.2 into single-server (#4001) 2022-04-01 11:14:06 -03:00
Diego Mello 9d2175485c
Merge 4.26.1 into single-server (#3981) 2022-03-29 15:53:27 -03:00
Diego Mello 58c9e98e49
[FIX] Fix synchronization of removed subscriptions (#3768)
When a subscription is removed from the server via another client, when the
mobile app is relaunched the subscriptions were not being removed properly.
Changed the logic to use the subscriptionResult.remove array from the server
and the _id property to fix.

Co-authored-by: Christian King <cking@vonix.io>
2022-03-11 11:19:23 -03:00
Diego Mello 65c9aec2b4
[FIX] Issues after reconnecting (#3815) 2022-03-11 11:12:25 -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
Diego Mello fe33a4a6b0
Chore: Remove Teams migration (#3857) 2022-03-08 10:15:03 -03:00
Diego Mello fc9e9a4f2a
Merge 4.25.0 into single-server (#3790)
* Chore: Migrate DefaultBrowserView to Typescript (#3488)

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

* Chore: Migrate PickerView to Typescript (#3501)

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

* Chore: Migrate AttachmentView to Typescript (#3483)

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

* Chore: Migrate MarkdownTableView to Typescript (#3500)

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

* Chore: Migrate E2EEncryptionSecurityView to Typescript (#3489)

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

* Chore: Migrate E2EEnterYourPasswordView to Typescript (#3490)

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

* Chore: Migrate E2EHowItWorksView to Typescript (#3492)

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

* Chore: Migrate E2ESaveYourPasswordView to Typescript (#3493)

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

* Chore: Migrate ForgotPasswordView to Typescript (#3496)

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

* Chore: Migrate ForwardLivechatView to Typescript (#3497)

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

* Chore: Migrate JitsiMeetView to Typescript (#3498)

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

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

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

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

* Merge 4.22.0 into master (#3523)

* Tests: Make Detox work on Android (#3051)

* Chore: Migrate NewMessageView to Typescript (#3502)

* Chore: Migrate ScreenLockConfigView to Typescript (#3517)

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

* Chore: Migrate ScreenLockedView to Typescript (#3515)

* Chore: Migrate SecurityPrivacyView to Typescript (#3518)

* Chore: Migrate SelectListView to Typescript (#3519)

* Chore: Migrate SelectServerView to Typescript (#3521)

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

* Chore: Migrate SetUsernameView to Typescript (#3526)

* Chore: Migrate ThemeView to Typescript (#3522)

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

* Chore: Migrate StatusView to Typescript (#3527)

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

* Chore: Migrate ShareListView to Typescript (#3459)

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

* Chore: Migrate TeamChannelsView to Typescript (#3532)

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

* Language update from LingoHub 🤖 (#3529)

Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub

Easy language translations with LingoHub 🚀

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

* Chore: Migrate react-navigation to TypeScript (#3480)

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

* Bump version to 4.23.0 (#3546)

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

* [IMPROVE] Connection stability (#3531)

* [NEW] Permission for uploading files (#3505)

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

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

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

* Chore: Migrate ModalBlockView to Typescript (#3503)

* Chore: Migrate ModalBlockView to Typescript

* minor tweaks

* update the navigator

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

* Chore: Migrate SelectedUsersView to Typescript (#3520)

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

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

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

* Merge 4.23.0 into master (#3574)

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

* Chore: Migrate Redux to Typescript PoC (#3565)

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

* Chore: Migrate lib user preferences to Typescript (#3578)

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

* [FIX] Roles rendering on dark theme (#3589)

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

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

* [FIX] teams.removeMembers mobile usage (#3557)

* Chore: Migrate DisplayPrefsView to Typescript (#3555)

* Chore: Migrate Utils Folder to Typescript (#3544)

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

* Chore: Migrate ThreadMessagesView to Typescript (#3538)

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

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

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

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

* [FIX] Lint not ignoring Markdown props (#3600)

* Bump version to 4.24.0 (#3601)

* Chore: Migrate notification/push to Typescript (#3587)

* chore: migrate connect to ts and add tests

* chore: add more tests

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

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

* chore: migrate redux module encryption to typescript

* chore: migrate customEmoji to typescript and add tests

* chore: create IPreferences interface

* chore: migrate redux module sortPreferences to typescript

* chore: fix IPreference interface and organize import

* chore: migrate to typescript

* chore: migrate usersTyping to typescript

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

* chore: migrate settings to typescript

* chore: add interface to IStateAplication

* chore: migrate redux module room to typescript

* update definitions

* chore: fix error on error interface

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

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

* minor tweak

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

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

* chore: migrate redux module roles to typescript

* wip: add IRoles to IAplicationState interface

* add storybooks, update snapshots and DiscussionsView

* Minor tweaks

* Fix lint

* Remove unused import

* chore: migrate redux module inviteUsers to typescript

* chore: migrate messages action to typescript

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

* chore: implements IAplicationState on type

* chore: remove mapDispatchToProps and continue ts migration

* chore: fix types and apply IAplicationState to types

* Migrate redux server action/reducer to ts

* add tests

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

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

* [FIX] Threads' pagination not working (#3631)

* update tests

* chore: update settings value types

* Send missing params to selectServerRequest

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

* update interface

* update action definition

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

* Update interfaces and minor tweaks to DiscussionsView screen and components

* Fix navigation logic and update interfaces

* Minor tweaks

* Undo change on project.pbxproj

* Update project.pbxproj

* Update project.pbxproj

* Remove style.ts

* Minor tweak

* update snapshots

* Merge 4.24.0 into master (#3648)

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

* chore: add as string to fix type

* Fix lint

* fix types

* test

* Remove console.log

* test

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

* remove console.log

* Add missing DiscussionsView snapshot

* fix build and useless done and async generator

* update snapshot

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

* fix build and useless done and async generator

* update snapshot

* Chore: Migrate Database to Typescript (#3580)

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

* Chore: Migrate redux module permissions to typescript (#3630)

* Chore: Migrate redux module share to typescript (#3612)

* chore: migrate redux module share to typescript

* chore: fix types

* chore: update types

* chore: migrate redux module share to typescript

* remove double import

* chore: fix import

* Chore: Migrate redux module createChannel to typescript (#3602)

* chore: migrate createChannel to ts and add tests

* chore: fix naming

* chore: add more types and remove mapDispatchToProps from components

* remove todo

* update tests

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

* chore: insert IApplicationState to mapStateToProps state type

* Remove spread

* fix type

* fix import and state type

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

* Chore: Migrate redux module app to typescript (#3598)

* chore: migrate activeUsers reducer and action to TS

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

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

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

* chore: move IUser to base types

* chore: move state props to ISelectedUsersViewProps

* chore: create mocketStore

* chore: remove applyAppStateMiddleware

* test: create activeUser and selectedUser tests

* test: add more selectedUsers tests

* chore: fix action type

* chore: move types to definition folder and fix imports

* chore: remove unused const

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

* chore: exprot initial state and then import on tests

* chore: move interfaces to reducer and import on screen

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

* chore: fix IUser import

* chore: update interfaces and types names

* chore: update definitions

* chore: update IBaseScreen definitions

* chore: init reducer/app migration to ts

* chore: add tests and migrate RootEnum

* wip: migrate fixed consts to RootEnum

* chore: remove redux action inferences

* fix types

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

* Chore: Migrate redux module createDiscussion to typescript  (#3604)

* chore: migrate createDiscussion to ts and add tests

* chore: add TActionCreateDiscussion to TApplicationActions

* fix types

* update types

* fix types

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

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

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

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

* 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>

* 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>

* Regression: Message press navigating to empty RoomView (#3680)

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

* 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

* 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>

* Chore: Migrate readMessages to TS (#3669)

* Migrate readMessages to TS

* Update IRocketChat interface

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

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

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

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

* Fix reactotron multiple connections (#3622)

* Chore: Fix rocketchat interface (#3705)

* Chore: Migrate logout to Typescript (#3688)

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

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

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

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

* 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>

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

* [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 :(

* 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>

* Chore: Move some methods to SDK (#3736)

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

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

* Bump version to 4.25.0 (#3745)

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

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

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

* Language update from LingoHub 🤖

Project Name: Rocket.Chat.ReactNative
Project Link: https://translate.lingohub.com/rocketchat/dashboard/rocket-dot-chat-dot-reactnative
User: Robot LingoHub

Easy language translations with LingoHub 🚀

* remove draft gl

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

* Chore: Migrate methods/getSingleMessage to TS (#3700)

* migrate getSingleMessage to TS

* minor tweak

* 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>

* Chore: Migrate updateMessages to Typescript (#3715)

* Chore: Migrate selector/login to TS (#3731)

* migrate selector/login to TS

* Fix lint errors

* set aliases for returns

* Chore: Migrate helpers/parseUrls to Typescript (#3735)

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

* Chore: Migrate methods/helpers/parseQuery to Typescript

* tweak in example

* Chore: Migrate app/commands to typescript (#3697)

* 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

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

* migrate enterpriseModules to TS

* update test file

* 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>

* Chore: Migrate buildMessage to TS (#3732)

* migrate buildMessage to TS

* Fix lint

* minor tweak

* minor tweaks

* 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

* [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

* 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>

* 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

* Chore: Migrate redux module room to typescript (#3636)

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

* chore: add tests to redux module room

* chore: create ERoomType and use on implemention

* chore: update enum name

* fix test id

* Chore: Migrate redux module login to typescript (#3647)

* chore: migrate redux module login to typescript

chore: update redux module login tests

* update workers

* wip

* fix type

* remove partial

* add more status

* migrate the rest of the stuff to typescript

* fix tests and types

* fix types and tests

* Chore: Migrate method getSettings to typescript (#3703)

* chore: migrate getSettings to typescript and and some types

* chore: remove this and add current to code

* chore: add current

* Chore: Migrate getCustomEmojis to TS (#3724)

* update customEmoji interface and getCustomEmoji

* add sdk

* updated emojiCustom rest definition

* minor refactor

* update params object

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

* Chore: Migrate methods/getRoomInfo to TS (#3695)

* migrate getRoomInfo to TS

* update room type

* update types

* Fix lint error

* 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>

* Chore: Migrate getUsersPresence to TS (#3717)

* migrate getUsersPresence to ts

* use sdk and remove this context from getUsersPresence

* Chore: Migrate loadMissedMessages to typescript (#3704)

* chore: migrate loadMissedMessages to typescript

* remove loaderItem

* remove this from functions

* 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>

* 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>

* 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

* [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>

* Chore: Migrate methods/loadNextMessages to typescript (#3719)

* feat: update loadNextMessages to ts

* minor tweak

* chore: minor tweaks after merge with developer

* chore: migrate getFileUrlFromMessage to ts (#3734)

* [IMPROVE] Team system messages feedback (#3771) (#3772)

* almost there

* Update stories

Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com>
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Matheus Barbosa Silva <36537004+matheusbsilva137@users.noreply.github.com>
Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Anant Bhasin <38764067+aKn1ghtOut@users.noreply.github.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: lingohub[bot] <69908207+lingohub[bot]@users.noreply.github.com>
Co-authored-by: Robot LingoHub <robot@lingohub.com>
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
Co-authored-by: Danish Ahmed Mirza <77742477+try-catch-stack@users.noreply.github.com>
Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com>
Co-authored-by: Snyk bot <snyk-bot@snyk.io>
2022-02-28 16:03:42 -03:00
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
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 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
Gleidson Daniel Silva 6fa35cd748
Chore: Migrate redux module app to typescript (#3598)
* chore: migrate activeUsers reducer and action to TS

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

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

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

* chore: move IUser to base types

* chore: move state props to ISelectedUsersViewProps

* chore: create mocketStore

* chore: remove applyAppStateMiddleware

* test: create activeUser and selectedUser tests

* test: add more selectedUsers tests

* chore: fix action type

* chore: move types to definition folder and fix imports

* chore: remove unused const

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

* chore: exprot initial state and then import on tests

* chore: move interfaces to reducer and import on screen

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

* chore: fix IUser import

* chore: update interfaces and types names

* chore: update definitions

* chore: update IBaseScreen definitions

* chore: init reducer/app migration to ts

* chore: add tests and migrate RootEnum

* wip: migrate fixed consts to RootEnum

* chore: remove redux action inferences

* fix types

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-02-02 15:27:10 -03:00
Diego Mello 14f0108325
Merge 4.24.0 into single-server (#3649) 2022-01-24 17:12:25 -03:00
Reinaldo Neto 905e12380a
[FIX] teams.removeMembers mobile usage (#3557) 2022-01-11 11:44:53 -03:00
Diego Mello b564eddcfd
Merge 4.22.0 into single-server (#3524) 2021-11-25 11:25:11 -03:00
Alex Junior 251b42ca54
[IMPROVE] Open Jitsi call even if server isn't found (#3442) 2021-11-16 13:04:33 -03:00
Diego Mello 83b4164a8b
Merge 4.21.0 into single-server (#3468) 2021-10-28 14:49:08 -03:00
Reinaldo Neto 2ab1bacdb3
[NEW] Direct link to a threaded conversation (#3406)
* [FIX] deeplinking to thread

* fix how to find threadId

* tmid as route params jumpToThreaId

* minor tweak

* minor tweak on logic

* E2E Test

* minor tweak

* wait for the return of the thread

* Minor refactor

* Fix e2e tests for docker

* popToRoot when focused and there is a jumpToThread

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-10-26 13:11:50 -03:00
Reinaldo Neto 72d50887a4
[FIX] Cannot read property 'error' of undefined when creating a channel (#3437) 2021-10-26 10:40:46 -03:00
Reinaldo Neto 2d392425ff
[FIX] Unnecessary navigation on server forced logout (#3428) 2021-10-14 16:38:32 -03:00
Diego Mello 450a38c407
Merge 4.20.0 into single-server (#3413)
* Merge develop into single-server

* Apply changes
2021-10-01 15:12:19 -03:00
Reinaldo Neto d2544a79c8
[IMPROVE] Onboarding changes (#3387)
- Change the first screen of the app
- Minor changes on NewServerView and make it the first screen of the app
- Add "Create workspace" to ServerDropdown

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-09-23 11:17:53 -03:00
Alex Junior 69a67ea998
Chore: Start Typescript migration (#3279) 2021-09-13 17:41:05 -03:00
Diego Mello 5c6274de20
Merge 4.19.0 into single-server (#3360) 2021-08-31 17:35:31 -03:00