mattermost-mobile/app/hooks
Lucas Reis 8e854a8bdd
Implementing the Audio Playback/Download on the chat (#7900)
* feat: added new check for isAudio and added the supported mime types

* feat: adding the progress and audio on the audio file message

* feat: finishing the layout of the audio_file

* feat: play and pause audio

* feat: update the progress bar when audio is playing

* feat: update the timeframe of the audio

* feat: update with the new design

* feat: adding download and preview

* feat: creates a hook for the file download and preview

* feat: adding useCallback to make the return stable

* fix: iOS issue when playing in loop

* feat: adding localization for the error

* fix: removing code tha was inserted for debug

* feat: add a new line on the en.json

* fix: fixing types

* feat: adding the onSeek method inside the progress bar

* feat: changing progress value to animated value

* feat: changing to GestureDetector and making the seek method work

* feat: adding a touchable without feedback to prevent the audio to triggering other page

* feat: adding the drag on the seek method

* feat: making the download button more gray

* fix: fix tests

* fix: prevent onProgress from clearing the seconds when the audio is paused

* feat: clamping the position of the cursor to never be dragged offscreen

* feat: enhancing the experience of dragging the cursor on the progress bar

* feat: differentiate between the throttles

* feat: remvoing the aac audio files support

* feat: pausing if the focus has changed

* feat: render differently the audio file when in the files list

* refactor: optimize audio file component by using useCallback for event handlers

* refactor: extract stopPropagation function for better readability in AudioFile component

* feat: implement custom useThrottled hook and replace lodash throttle in AudioFile component

* refactor: update useThrottled hook to accept a generic callback type

* fix: loading of uri of audio files after merge

* feat: add audioFile style to enhance layout for audio files

* fix: tests
2025-02-19 11:17:30 +01:00
..
android_back_handler.test.ts MM-59740 + others - Add tests for various files in hooks/ (#8448) 2025-01-21 08:41:52 -05:00
android_back_handler.ts Make androidBackHandler to update if the handler changes (#7519) 2023-08-31 10:31:55 +02:00
apps.test.tsx MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
apps.ts App framework - Post menu and channel info bindings, App forms (#6735) 2022-11-30 21:25:08 +02:00
autocomplete.test.ts MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
autocomplete.ts Fix autocomplete not scrolling in search in Android (#6596) 2022-09-08 04:39:15 -03:00
channel_switch.test.ts MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
channel_switch.ts Add minor fixes and performance improvements on channel switch (#6469) 2022-07-15 16:04:58 +02:00
device.test.tsx MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
device.ts MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
did_update.test.tsx MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
did_update.ts Upgrade Dependencies (#7299) 2023-04-21 12:16:54 -04:00
emoji_category_bar.test.ts MM-59740 + others - Add tests for various files in hooks/ (#8448) 2025-01-21 08:41:52 -05:00
emoji_category_bar.ts New UI for Emoji picker (#6933) 2023-01-12 13:38:44 +02:00
fetching_thread.test.ts MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
fetching_thread.ts [MM-47483] Activity Indicator while loading thread posts (#6865) 2022-12-17 01:15:22 +05:30
files.test.ts Implementing the Audio Playback/Download on the chat (#7900) 2025-02-19 11:17:30 +01:00
files.ts Implementing the Audio Playback/Download on the chat (#7900) 2025-02-19 11:17:30 +01:00
freeze.test.ts MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
freeze.ts [Gekidou] optimizations, fix & moved files (#6177) 2022-04-18 08:49:17 -04:00
gallery.test.ts MM-59740 + others - Add tests for various files in hooks/ (#8448) 2025-01-21 08:41:52 -05:00
gallery.ts MM-59740 + others - Add tests for various files in hooks/ (#8448) 2025-01-21 08:41:52 -05:00
handle_send_message.test.tsx MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
handle_send_message.ts Mobile drafts (#8280) 2025-01-13 18:40:03 +05:30
header.test.tsx MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
header.ts fix: MM-58164 Search text is behind the textbox while searching (#8026) 2024-09-05 11:28:00 -06:00
input.test.ts MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
input.ts Fix double tilde by waiting for text values to propagate to the native side (#7132) 2023-02-22 18:03:21 +01:00
markdown.test.ts MM-59740 + others - Add tests for various files in hooks/ (#8448) 2025-01-21 08:41:52 -05:00
markdown.ts Show at mentions in RemoveMarkdown renderer (#7664) 2023-11-17 11:43:25 +01:00
navigate_back.test.ts MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
navigate_back.ts Add support for review app (#6772) 2022-11-24 18:52:15 +01:00
navigation_button_pressed.test.ts MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
navigation_button_pressed.ts MM-56899 - prevent app block when setting custom status if no internet (#8283) 2024-12-05 15:53:54 -05:00
persistent_notification_props.test.ts MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
persistent_notification_props.ts Mobile drafts (#8280) 2025-01-13 18:40:03 +05:30
show_more.test.ts MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
show_more.ts [Gekidou] post component tree and partial postList (#5637) 2021-09-06 08:22:55 -03:00
team_switch.test.ts MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
team_switch.ts [Gekidou] perf improvement & fix upgrade path (#6302) 2022-05-24 08:45:17 -04:00
teams_loading.test.ts MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
teams_loading.ts Show loading only when team channels are being loaded (#6872) 2022-12-19 12:25:23 +01:00
throttled.ts Implementing the Audio Playback/Download on the chat (#7900) 2025-02-19 11:17:30 +01:00
use_external_link.test.ts Add test notification tool (#8271) 2024-11-11 10:22:57 +01:00
use_external_link.ts Add test notification tool (#8271) 2024-11-11 10:22:57 +01:00
useCollapsibleHeader.test.tsx Update dependencies and upgrade to RN 0.76.5 (#8421) 2025-01-16 07:11:32 -07:00
utils.test.tsx Fix edit attachments (#8468) 2025-01-17 12:41:14 +01:00
utils.ts Fix edit attachments (#8468) 2025-01-17 12:41:14 +01:00
why_did_you_update.test.ts MM-59741 + others - Add tests for remaining app/hooks files (#8517) 2025-01-28 08:51:50 -05:00
why_did_you_update.ts [Gekidou] post component tree and partial postList (#5637) 2021-09-06 08:22:55 -03:00