Commit Graph

331 Commits

Author SHA1 Message Date
Reinaldo Neto 55afcafd22 can play multiple audios, pausing the previous to execute the new one 2023-08-09 19:35:20 -03:00
Reinaldo Neto cd916644e8 start the tweaks on layout 2023-08-09 18:02:36 -03:00
Reinaldo Neto dfa368821a play/pause, track is working and onEnd 2023-08-09 15:51:45 -03:00
Reinaldo Neto 5bb14cb1e3 play/pause button, currentTime equal the sound, can change the slider and reflect to the sound 2023-08-08 18:24:46 -03:00
Reinaldo Neto f344c9e97f created the slider with text 2023-08-07 20:57:15 -03:00
Reinaldo Neto 186ab338e4 Merge branch 'develop' into feat.new-audio-player 2023-08-07 14:48:45 -03:00
Reinaldo Neto 425522a63e separate audio to a folder inside components and minor tweak attachment 2023-08-07 14:42:41 -03:00
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
Reinaldo Neto c469d0f8e9 fix togglePlayPause 2023-08-04 18:39:23 -03:00
Reinaldo Neto 278ed91f9a
feat: forward message (#5110)
* feat: share message

* index, selectPersonOrChannel, types

* share a message using the chat.postMessage and refactor the interfaces

* minor tweak

* removed rid in from select person or channel

* change title

* add pt-br translation

* compareServerVersion GTE 6.2.0

* test for sharemessage

* view to masterDetail

* fix podfile

* change from forward message to share message

* change from share to forward

* refactor the forward message view, tweak on some styles and add the cleanUpMessage

* minor tweak

* refactor to add MessagePreview and use the same message/index

* fix e2e test

* add the capability to filter the subscsription if the room is read only or not

* minor tweak

* fix disable the send button and add message has been shared

* add try catch and toast or alert

* fix interface
2023-08-04 11:09:36 -03:00
Reinaldo Neto 29b61e0ef3 first commit 2023-08-02 16:50:20 -03:00
Reinaldo Neto 3e75699b0b minor tweak in image 2023-07-24 20:31:26 -03:00
Reinaldo Neto 7e81d41eec remove generate thumbnail 2023-07-24 17:46:49 -03:00
Reinaldo Neto 71ec9698c9 caching and deleting video's thumbnails 2023-07-20 16:37:49 -03:00
Reinaldo Neto 6ed1c7e62f minor tweak 2023-07-05 14:17:34 -03:00
Reinaldo Neto 42507b6921 avoid onpress do some edge case because of cached at video 2023-07-05 14:16:39 -03:00
Reinaldo Neto edd4fb699a switch useLayoutEffect to useEffect 2023-07-05 12:36:54 -03:00
Reinaldo Neto fb7da4f70c removed the necessity of messageId or id 2023-07-04 18:55:30 -03:00
Reinaldo Neto b6dceecf50 fix the loading in image and video at begin 2023-07-04 15:16:26 -03:00
Reinaldo Neto b3f460598f don't need to controle the filepath in the view 2023-07-04 14:22:20 -03:00
Reinaldo Neto c85f98955c set the blur as always dark and add the possibility to overlay 2023-07-04 12:31:59 -03:00
Reinaldo Neto 53ed61df39 add Audio to i18n and minor tweak 2023-07-04 00:54:25 -03:00
Reinaldo Neto d39a5c7da2 thumbnail video and video behavior 2023-07-04 00:35:31 -03:00
Reinaldo Neto b88603173f separate blurview 2023-07-03 19:15:58 -03:00
Reinaldo Neto b6ae55e57f remove mediaType and refactor audio and image 2023-07-03 14:28:22 -03:00
Reinaldo Neto a92d88c99d change the name to netInfoState and Local_document_directory 2023-06-30 11:26:46 -03:00
Reinaldo Neto 469d42bdd0 avoid auto download from reply 2023-06-26 20:33:24 -03:00
Reinaldo Neto 332e51f2db fix media auto download view layout and minor tweak wifi 2023-06-26 20:01:02 -03:00
Reinaldo Neto ce48ef06a4 minor tweak, add the default behavior, add the OFF as label 2023-06-09 12:16:09 -03:00
Reinaldo Neto e7244d9bbe fix the name of searchMediaFIleAsync's result 2023-06-07 18:56:36 -03:00
Reinaldo Neto b4a9b8af6e refactor video 2023-06-07 18:15:37 -03:00
Reinaldo Neto b341528f10 refactor audio 2023-06-07 17:23:01 -03:00
Reinaldo Neto 8c0c1d7dc0 message/Image refactored, change the component to show the image from FastImage to Image 2023-06-07 17:14:31 -03:00
Reinaldo Neto 6f3dc60994 variable isAutoDownloadEnable name and handleMediaDownload getExtension 2023-06-07 12:36:30 -03:00
Reinaldo Neto c244dd4906 fix audio and move the netInfo from autoDownloadPreference to redux 2023-06-07 12:09:43 -03:00
Reinaldo Neto 1dc038d321 refactor some changes requested 2023-05-30 11:07:34 -03:00
Reinaldo Neto 67ba3131e3 pass the correct message id when there is an attachment on reply 2023-05-19 18:32:42 -03:00
Reinaldo Neto 74e6e8fd8b fix lint 2023-05-19 13:01:38 -03:00
Reinaldo Neto 789ee3efda Merge branch 'develop' into feat.media-auto-download-preference 2023-05-19 12:49:33 -03:00
Reinaldo Neto ce67d05852 clean up 2023-05-19 11:52:22 -03:00
Reinaldo Neto 99973c0d28 fix the try catch download media 2023-05-19 11:35:36 -03:00
Reinaldo Neto 02ba6e9961 done for image and audio 2023-05-19 02:42:21 -03:00
Reinaldo Neto aa2c2886a0 video download behavior 2023-05-19 01:30:22 -03:00
Reinaldo Neto 95cbe25ae7 remove all the redux stuff and do the same as file upload 2023-05-19 01:18:57 -03:00
Diego Mello 0079229a34
chore: Upgrade React Native to 0.71.7 (#4984) 2023-05-18 18:09:33 -03:00
Reinaldo Neto 370f893e94 send messageId to video 2023-05-16 21:34:35 -03:00
Reinaldo Neto d3c87a19eb remove blurcomponent, fix the blur style in image.tsx, minor tweak video function name 2023-05-16 21:31:53 -03:00
Reinaldo Neto 7108e35ae7 remove the custom hook for autoDownload 2023-05-15 23:50:08 -03:00
Reinaldo Neto acb280fa36 add the possibility to start downloading a video, then exit the room, back again to room and cancel the video previously downloading 2023-05-15 23:48:57 -03:00
Reinaldo Neto 6c49c57046 video download and auto download, also keeped the behavior to download unsuportted videos to the gallery 2023-05-15 23:10:14 -03:00