* feat: troubleshoot notification (#5198)
* navigation done
* create the icon inside roomslistview, navigation to push troubleshot and layout push troubleshoot
* custom header
* fix the rooms list view header icon
* layout done
* update the pt-br i18n
* tweak on colors
* feat: create notification in room view (#5250)
* button and simple navigation done, missing master detail
* navigation
* add withTheme and colors to rightuttons
* fix e2e test
* feat: add troubleshooting to notifications pages (#5276)
* feat: add troubleshooting to notifications pages
* fix e2e test
* feat: device notification settings (#5277)
* iOS go to device notification setting to change the configuration
* go to notification settings with android
* add notifee
* add the reducer and action
* saga request done
* add the setInAlert action
* tweak at name and add focus to dispatch the request
* use the foreground inside pushTroubleShoot to request the notification and fix the icon color
* add the request at roomslistview didmount
* remove the notification modulo from android
* add patch
* minor tweak
* feat: test push notification (#5329)
* feat: test push notification
* restApi and definition
* push.info and change properly the troubleshootingNotification
* use the finally at try/catch
* minor tweak
* alert and push.info just for 6.6
* fix the react-native.config
* minor tweaks
* minor tweak
* push.test as rest api
* change the name from inAlertNotification to highlightTroubleshooting
* feat: push quota
* refactor the percentage state
* removed the push quota feature
* minor tweaks
* update the link to push notification
* the notification icon in the room header will appear if notifications are disabled or highlight troubleshoot is true
* remove push quota texts
* updated some of the push quota texts
* chore: rename highlightTroubleshooting
* chore: better prop naming
* wip
* chore: fix function name
* chore: fix colors
* fix: copy
* chore: 💅
* chore: use fork
* chore: naming
* chore: fix init
* chore: naming
* chore: naming
* Comment CE code
* Use put on troubleshooting saga
* Add db column
* fix: check notification payload
* action: organized translations
* fix: push init
---------
Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: GleidsonDaniel <GleidsonDaniel@users.noreply.github.com>
* 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
* [FIX] Omnichannel's icon svg fallback when the link returns an error
* add activity indicator
* switch between activity indicator to custom icon
* reuse the same component as const
* 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>
* 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>
* reinstall react native and pods
* anotation of the react native package to the branch fix-ios-connections
* fix makes the correct point to the address of the lib
* add: @react-native-clipboard/clipboard
* create jest.setup.js file and centralizes all mocks on these folder for jest
Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
* 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