Files
Sable/src/app/components/message
7w1 254cd5e907 Fix crash while scrubbing some audio files (#902)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

I don't think we technically do "scrubbing" but idk any other word for
it.

<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->

Fixes the crash while scrubbing audio files by pretty much just spamming
infinity checks everywhere and adding a helper to calculate duration
properly (previously the voice message content never specified duration
so it would only appear after the file fully loaded in).

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
2026-05-25 15:47:08 -05:00
..
2026-04-16 22:38:18 -05:00
2026-05-23 17:02:43 +03:00
2026-05-13 19:24:21 -05:00
2026-04-16 22:38:18 -05:00
2026-04-16 22:38:18 -05:00
2023-10-06 08:14:06 +05:30
2026-04-16 22:15:13 -05:00
2026-05-18 12:17:42 -05:00
2026-05-18 12:13:38 -05:00
2026-04-16 22:15:13 -05:00