Rocket.Chat.ReactNative/app/views
Reinaldo Neto c9f4ca1197
feat: add media auto-download (#5076)
* feat: media auto-download view

* media auto download view completed and saving the settings in mmkv

* audio download preference

* audio auto download when the user who sent the audio is the same logged on mobile

* creation of isAutoDownloadEnabled, evaluate hist hook, Image Full Size preload done

* minor tweak audio show play button after download

* refactor audioFile to handleMediaDownload and fixed the audio download

* desestructured params to download too

* image download and autoDownload, algo fix the formatAttachmentUrl to show the image from local

* add the possibility to cancel image download and clear local images

* refactor blur component

* video download and auto download, also keeped the behavior to download unsuportted videos to the gallery

* add the possibility to start downloading a video, then exit the room, back again to room and cancel the video previously downloading

* remove the custom hook for autoDownload

* remove blurcomponent, fix the blur style in image.tsx, minor tweak video function name

* send messageId to video

* introducing the reducer to keep the downloads in progress

* create a media download selector

* remove all the redux stuff and do the same as file upload

* video download behavior

* done for image and audio

* fix the try catch download media

* clean up

* image container uiKit

* fix lint

* change rn-fetch-blob to expo-filesystem

* add pt-br

* pass the correct message id when there is an attachment on reply

* refactor some changes requested

* fix audio and move the netInfo from autoDownloadPreference to redux

* variable isAutoDownloadEnable name and handleMediaDownload getExtension

* message/Image refactored, change the component to show the image from FastImage to Image

* refactor handleMediaDownload and deleteMedia

* minor tweak

* refactor audio

* refactor video

* fix the type on the messagesView(the view of files)

* minor tweak

* fix the name of searchMediaFIleAsync's result

* minor tweak, add the default behavior, add the OFF as label

* minor tweaks

* verify if the media auto download exists on settings view

* fix media auto download view layout and minor tweak wifi

* avoid auto download from reply

* minor tweak at comment

* tweak list.section

* change the name to netInfoState and Local_document_directory

* remove mediaType and refactor audio and image

* separate blurview

* thumbnail video and video behavior

* add Audio to i18n and minor tweak

* set the blur as always dark and add the possibility to overlay

* don't need to controle the filepath in the view

* fix the loading in image and video at begin

* save the file with a similar filename as expected

* removed the necessity of messageId or id

* minor tweak

* switch useLayoutEffect to useEffect

* avoid onpress do some edge case because of cached at video

* minor tweak

* tweak at audio comment extension

* minor tweak type userpreferences

* remove test id from mediaAutoDownloadView

* change action's name to SET_NET_INFO_STATE

* caching and deleting video's thumbnails

* remove generate thumbnail

* minor tweak in image

* update camera-roll and save the file from local url

* remove local_cache_directory and deleteThumbnail

* update blur to fix error on android

* fix blur is hiding the file description

* avoid download unsupported video

* return void when it is loading the audio
2023-08-07 11:02:30 -03:00
..
AddExistingChannelView chore: migrate AddExistingTeamView to hooks (#5042) 2023-07-06 14:40:46 -03:00
AdminPanelView fix: Calls with jwt not working on ios and fix media permission on iOS (#5075) 2023-06-06 18:53:48 -03:00
AutoTranslateView chore: migrate AutoTranslateView to hooks (#4677) 2023-06-29 19:01:34 -03:00
CannedResponsesListView [FIX] Remove nested room navigation (#4702) 2022-11-25 10:21:56 -03:00
ChangeAvatarView feat: Change Avatar View (#4746) 2023-04-10 11:59:00 -03:00
CreateChannelView chore: Remove unused i18n keys from en.json (#5056) 2023-06-26 16:28:11 -03:00
CreateDiscussionView fix: selected items on a multiselect change when do a new search (#5145) 2023-08-03 16:37:14 -03:00
DefaultBrowserView Regression: Default Browser View title (#4556) 2022-09-23 17:22:21 -03:00
DirectoryView fix: app won't open archived channels (#5135) 2023-08-01 11:45:56 -03:00
DiscussionsView [FIX] Searching for Discussion (#4843) 2023-03-16 20:30:58 -03:00
E2EEncryptionSecurityView chore: migrate E2EEncryptionSecurityView to hooks (#5085) 2023-07-05 16:33:47 -03:00
ForwardMessageView feat: forward message (#5110) 2023-08-04 11:09:36 -03:00
InviteUsersEditView Chore: Hooks app/views/InviteUsersEditView (#4670) 2023-02-02 18:41:32 -03:00
InviteUsersView Chore: Upgrade React Native to 0.68.2 (#4316) 2022-08-08 18:02:08 -03:00
LanguageView Chore: Hooks app/views/LanguageView (#4537) 2022-09-22 18:40:32 -03:00
MediaAutoDownloadView feat: add media auto-download (#5076) 2023-08-07 11:02:30 -03:00
MessagesView feat: add media auto-download (#5076) 2023-08-07 11:02:30 -03:00
NewMessageView chore: Upgrade React Native to 0.71.7 (#4984) 2023-05-18 18:09:33 -03:00
NewServerView chore: Upgrade React Native to 0.71.7 (#4984) 2023-05-18 18:09:33 -03:00
NotificationPreferencesView [FIX] Decrease space between sections on lists (#4543) 2022-09-23 17:24:37 -03:00
ProfileView feat: add bio and nickname to profile view (#5060) 2023-08-01 14:34:05 -03:00
ReadReceiptView chore: Upgrade React Native to 0.71.7 (#4984) 2023-05-18 18:09:33 -03:00
RoomActionsView chore: migrate PickerView to hooks (#5002) 2023-06-30 11:01:01 -03:00
RoomInfoEditView fix: selected items on a multiselect change when do a new search (#5145) 2023-08-03 16:37:14 -03:00
RoomInfoView chore: Upgrade React Native to 0.71.7 (#4984) 2023-05-18 18:09:33 -03:00
RoomMembersView chore: Upgrade React Native to 0.71.7 (#4984) 2023-05-18 18:09:33 -03:00
RoomView chore: migrate PickerView to hooks (#5002) 2023-06-30 11:01:01 -03:00
RoomsListView fix: capability to dismiss the keyboard on drag for iOS on RoomsListView (#5094) 2023-06-16 18:37:26 -03:00
SearchMessagesView chore: migrate AttachmentView to hooks (#5003) 2023-06-29 18:10:49 -03:00
SelectedUsersView [FIX] Add users shouldn't have Skip option (#4828) 2023-01-25 15:28:03 -03:00
SettingsView feat: add media auto-download (#5076) 2023-08-07 11:02:30 -03:00
ShareListView chore: Upgrade React Native to 0.71.7 (#4984) 2023-05-18 18:09:33 -03:00
ShareView chore: Upgrade React Native to 0.71.7 (#4984) 2023-05-18 18:09:33 -03:00
SidebarView [NEW] Presence Cap (#4900) 2023-02-14 10:47:56 -03:00
StatusView [IMPROVE] Border radius and width on inputs (#4659) 2022-11-10 13:35:59 -03:00
ThreadMessagesView chore: Upgrade React Native to 0.71.7 (#4984) 2023-05-18 18:09:33 -03:00
UserNotificationPreferencesView fix: user notification preference state not reflecting the real state (#5138) 2023-07-19 16:47:01 -03:00
UserPreferencesView chore: Upgrade React Native to 0.71.7 (#4984) 2023-05-18 18:09:33 -03:00
WorkspaceView chore: migrate WorkspaceView to hooks (#5041) 2023-07-05 15:28:01 -03:00
AddChannelTeamView.tsx chore: migrate AddExistingTeamView to hooks (#5042) 2023-07-06 14:40:46 -03:00
AttachmentView.tsx feat: add media auto-download (#5076) 2023-08-07 11:02:30 -03:00
AuthLoadingView.tsx Chore: Create useAppSelector hook (#4189) 2022-05-13 12:01:34 -03:00
AuthenticationWebView.tsx chore: Upgrade React Native to 0.71.7 (#4984) 2023-05-18 18:09:33 -03:00
CannedResponseDetail.tsx [FIX] Remove nested room navigation (#4702) 2022-11-25 10:21:56 -03:00
ChangePasscodeView.tsx Chore: Evaluate helpers and utils - Typescript (#4146) 2022-06-06 11:17:51 -03:00
CloseLivechatView.tsx [IMPROVE] Add missing borders styles changes (#4675) 2022-11-11 13:04:57 -03:00
DisplayPrefsView.tsx Chore: Evaluate helpers and utils - Typescript (#4146) 2022-06-06 11:17:51 -03:00
E2EEnterYourPasswordView.tsx [IMPROVE] Standardize padding of E2E screens (#4701) 2022-11-21 16:10:38 -03:00
E2EHowItWorksView.tsx [IMPROVE] Standardize padding of E2E screens (#4701) 2022-11-21 16:10:38 -03:00
E2ESaveYourPasswordView.tsx [IMPROVE] Standardize padding of E2E screens (#4701) 2022-11-21 16:10:38 -03:00
ForgotPasswordView.tsx Chore: Hooks app/views/ForgotPasswordView (#4485) 2022-09-06 14:44:31 -03:00
ForwardLivechatView.tsx chore: migrate PickerView to hooks (#5002) 2023-06-30 11:01:01 -03:00
JitsiMeetView.tsx fix: disable full screen video on iOS jitsi calls (#5117) 2023-07-17 13:22:29 -03:00
LegalView.tsx Chore: Evaluate helpers and utils - Typescript (#4146) 2022-06-06 11:17:51 -03:00
LivechatEditView.tsx fix: selected items on a multiselect change when do a new search (#5145) 2023-08-03 16:37:14 -03:00
LoginView.tsx chore: Upgrade React Native to 0.71.7 (#4984) 2023-05-18 18:09:33 -03:00
MarkdownTableView.tsx Chore: Evaluate helpers and utils - Typescript (#4146) 2022-06-06 11:17:51 -03:00
ModalBlockView.tsx chore: Upgrade React Native to 0.71.7 (#4984) 2023-05-18 18:09:33 -03:00
PickerView.tsx chore: migrate PickerView to hooks (#5002) 2023-06-30 11:01:01 -03:00
RegisterView.tsx chore: Upgrade React Native to 0.71.7 (#4984) 2023-05-18 18:09:33 -03:00
ScreenLockConfigView.tsx chore: Upgrade React Native to 0.71.7 (#4984) 2023-05-18 18:09:33 -03:00
ScreenLockedView.tsx Chore: Upgrade React Native to 0.68.2 (#4316) 2022-08-08 18:02:08 -03:00
SecurityPrivacyView.tsx Chore: Update Storybook libs to v6 (#4439) 2022-08-19 16:53:40 -03:00
SelectListView.tsx chore: Upgrade React Native to 0.71.7 (#4984) 2023-05-18 18:09:33 -03:00
SelectServerView.tsx chore: Upgrade React Native to 0.71.7 (#4984) 2023-05-18 18:09:33 -03:00
SendEmailConfirmationView.tsx Chore: Migration to Hooks - FormTextInput (#4256) 2022-06-27 15:46:59 -03:00
SetUsernameView.tsx chore: Upgrade React Native to 0.71.7 (#4984) 2023-05-18 18:09:33 -03:00
Styles.ts [IMPROVE] Standardize padding of E2E screens (#4701) 2022-11-21 16:10:38 -03:00
TeamChannelsView.tsx chore: migrate AddExistingTeamView to hooks (#5042) 2023-07-06 14:40:46 -03:00
ThemeView.tsx Chore: Improve code and migrate some props to hooks on ThemeView (#4414) 2022-09-12 10:16:00 -03:00
WithoutServersView.tsx Chore: Migrate WithoutServerView to hooks (#4415) 2022-08-11 11:41:18 -03:00