Commit Graph
6704 Commits
Author SHA1 Message Date
github-actions[bot] ca855d8d7d chore: prepare release 1.12.1 2026-03-24 04:57:37 +00:00
7w1 877d41c833 Update cloudflare-web-deploy.yml (#504)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

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

Fixes #

#### Type of change

- [ ] 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-03-23 23:57:19 -05:00
7w1 141387e53c Create fix-workflow.md 2026-03-23 23:55:34 -05:00
7w1 c0bf26c409 Update cloudflare-web-deploy.yml 2026-03-23 23:54:23 -05:00
Elec3137 992f5f56b4 Change black theme to use a purple for borders 2026-03-23 21:53:54 -07:00
Elec3137 7151cd45c6 Change black theme to have a slight gray on surface-var-container 2026-03-23 21:53:54 -07:00
7w1 9da210b15c chore: prepare release 1.12.0 (#461)
> [!IMPORTANT]
> Merging this PR will create a new release.

## Features

* `Ctrl + K` search menu is now context aware and lists the current
space's rooms at the top.
([#499](https://github.com/SableClient/Sable/pull/499) by @7w1)
* Add knocking support when attempting to join a room from the
directory, an address, a room mention, or space hierarchy, as well as
text command support for knocking. Also improves rendering for knock
notifications in rooms.
([#470](https://github.com/SableClient/Sable/pull/470) by @polyjitter)
* Add Android/iOS PWA-specific icon variants.
([#473](https://github.com/SableClient/Sable/pull/473) by @Septicity)
* Add support for youtube embeds.
([#497](https://github.com/SableClient/Sable/pull/497) by
@thundertheidiot)
* Add sidebar three dot menu for quick access to related settings
([#474](https://github.com/SableClient/Sable/pull/474) by @wolterkam)
* Replies that mention the OP are now indicated by the OP username being
prefixed with @ ([#465](https://github.com/SableClient/Sable/pull/465)
by @mini-bomba)
* Made pin events show a tally of the messages that are pinned.
([#462](https://github.com/SableClient/Sable/pull/462) by @nushea)

### Improve multiline composer and voice recording
([#476](https://github.com/SableClient/Sable/pull/476) by @hazre)

- Add a multiline composer layout for longer drafts.
- Keep the voice recorder between composer actions in multiline mode.
- Show the recorder inside the composer on mobile while recording.
- Prevent the composer from expanding when recording starts.
- Make the recorder footer and waveform fit better across screen sizes.
- Let interrupted mobile recording gestures still stop correctly.
- Stabilize wrap detection around edge cases like narrow widths and
trailing spaces.

## Fixes

* Added error messages provided by homeserver to unknown login errors.
([#496](https://github.com/SableClient/Sable/pull/496) by @7w1)
* Ensure new updates always reload the page properly.
([#502](https://github.com/SableClient/Sable/pull/502) by @7w1)
* Removed the blocked users moved notice from notifications setting
page. ([#490](https://github.com/SableClient/Sable/pull/490) by @7w1)
* Fix recieved encrypted message per-message profiles not triggering
rerenders. ([#464](https://github.com/SableClient/Sable/pull/464) by
@7w1)
* Add `.m4a` files as a recognized audio type.
([#472](https://github.com/SableClient/Sable/pull/472) by @henk717)
* Fix messages disappearing from rooms after reconnects and timeline
resets. ([#478](https://github.com/SableClient/Sable/pull/478) by
@hazre)
* Fix Camera being enabled by default even when the client has it off
pre joining in browsers that permit the video (Electron/Tauri as
examples). ([#485](https://github.com/SableClient/Sable/pull/485) by
@Rawrington)
* Fix cinny-dark-theme link colors being too dark
([#469](https://github.com/SableClient/Sable/pull/469) by @Elec3137)
* Fix "Default" menu item height in room notification switcher.
([#466](https://github.com/SableClient/Sable/pull/466) by @polyjitter)
* fix the issue of empty displaynames of a persona, causing an empty
fallback message, it will now ommit the fallback, if the name is empty
or only consists of whitespace
([#495](https://github.com/SableClient/Sable/pull/495) by @dozro)
* Fixed an Android issue where recording a voice message with headphones
could leave audio stuck in low-quality mode until the app was restarted.
([#476](https://github.com/SableClient/Sable/pull/476) by @hazre)
* Fixed voice message scrubbing/seeking on Firefox by switching the
recorder from WebM (no seek index) to Ogg/Opus.
([#476](https://github.com/SableClient/Sable/pull/476) by @hazre)
* fixes touchpad zooming behaviour
([#481](https://github.com/SableClient/Sable/pull/481) by
@integralfunction)
* Fixes width mismatch for the call chat view.
([#460](https://github.com/SableClient/Sable/pull/460) by @polyjitter)
* Fix messages sent from sable showing wrong on other client(s)
([#468](https://github.com/SableClient/Sable/pull/468) by @nushea)

## Documentation

* Updated PR template and CONTRIBUTING.md to add AI disclosure
requirement. ([#456](https://github.com/SableClient/Sable/pull/456) by
@Rosy-iso)
v1.12.0
2026-03-24 04:46:10 +00:00
github-actions[bot] 02c590f7b5 chore: prepare release 1.12.0 2026-03-24 04:37:46 +00:00
7w1 f5d875bd9e Update fixes_touchpad_zooming_behaviour.md (#503)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

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

Swap minor to patch

#### Type of change

- [ ] 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-03-23 23:37:17 -05:00
7w1 2172d6e9a9 Update fixes_touchpad_zooming_behaviour.md 2026-03-23 23:33:00 -05:00
7w1 e5cc9c17d6 Add youtube link embeds (#497)
### Description

Adds support for optional client side youtube link embeds. Also includes
minimal scaffolding to support more embed types in the future.

Fixes #61

#### Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [X] 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
- [X] I have performed a self-review of my own code
- [X] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [X] 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).
2026-03-24 04:29:33 +00:00
7w1 c82384b041 Add title properties to settings toggles 2026-03-23 23:27:40 -05:00
7w1 d88cd9731b Sidebar settings and features discoverability (#474)
### Description
Improves discoverability of settings and features related to Sidebar.
Somewhat related to #391.

<img width="442" height="355" alt="image"
src="https://github.com/user-attachments/assets/e31bf732-c5f0-4f63-b588-10146e13b475"
/>

Fixes #

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [x] 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:

- [x] My code follows the style guidelines of this project
- [x] 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
- [x] My changes generate no new warnings
2026-03-23 22:32:21 -05:00
7w1 be8f253ee4 Add context aware search menu (#499)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

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

Makes it so the current space's rooms will appear at the top of the
`ctrl + k` search menu. I think it only checks the current space, so
likely doesn't work particularly well in nested situations, but good
enough to add for now I think.

Fixes #486 

#### Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] 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:

- [x] My code follows the style guidelines of this project
- [x] 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
- [x] 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-03-23 22:09:54 -05:00
7w1 56a1c09ffe Always reload not just when sw is ready (#502)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

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

Can't exactly test this since I wasn't having the issue... but I don't
think anything's broken?

#### 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-03-23 22:09:42 -05:00
7w1 5e8d5aee11 always reload not just when sw is ready 2026-03-23 21:54:23 -05:00
7w1 496838c184 context aware search menu 2026-03-23 20:33:42 -05:00
7w1 662434d692 Update feat-sidebar-settings-discoverability.md 2026-03-23 20:17:45 -05:00
Thunder 57208c9e00 fix final lints, add changeset 2026-03-24 00:46:24 +02:00
Thunderandtaskylizard 8cef4107b0 fix lints
Co-authored-by: taskylizard <[email protected]>
2026-03-24 00:22:55 +02:00
Thunder a4037c7f62 default settings 2026-03-24 00:22:55 +02:00
Thunder 17263e712a fixup 2026-03-24 00:22:55 +02:00
Thunder eefc4cdb38 don't nest ternary 2026-03-24 00:22:55 +02:00
Thunder f24bcb1bf5 formatting 2026-03-24 00:22:55 +02:00
Thunder c20479b689 cleanup and finalization ish 2026-03-24 00:22:55 +02:00
Thunder e5906183d7 horrendous state but it kind of works hopefully i can squash these 2026-03-24 00:22:55 +02:00
Kamil Wolter 5f0f01076b Prevent context menu from bubbling 2026-03-23 22:39:22 +01:00
Kamil Wolter 6b2e3a85e4 Moved quick sidebar settings to a context menu 2026-03-23 22:36:22 +01:00
7w1 41cf380c4a Add unknown login failure error messages (#496)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

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

Adds the error message provided by the homeserver when an unknown login
error occurs.

#### 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-03-23 13:25:22 -05:00
7w1 d0523f0abd add login failure error messages 2026-03-23 13:19:02 -05:00
7w1 bb9e024d5d Fix PMP profile handling and rendering for empty PMP display names (#495)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

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

This PR changes that whitespace only, or empty display names of
per-message-profiles resulting in display-names in the event being unset
and the fallback-string not being added to the body.

It also unsets the `avatar_url` if the avatar is not set. And internally
made the displayname an optional field. Only the `id` is now an required
field for the beeper pmp.

It also changes the message rendering, by removing the "via"-part if the
name is unset.

#### 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:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] 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. -->
No AI was used for my changes
2026-03-23 17:16:39 +00:00
Rose 9bfc8a9960 Fix (dev branch bug) description field having been broken by being undersized (#494)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description
This PR fixes a bug in the dev branch where if you try to edit a file
description the field becomes broken

(how it used to look while the issue was present)
<img width="638" height="549" alt="image"
src="https://github.com/user-attachments/assets/f9af1901-032d-4ce2-b5f7-8ad0d6e22e13"
/>

also i didnt add a change md because its a bug in dev so it would be
useless to show up on the changelog
Fixes #

#### 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:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [x] 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. -->
The fix was revealed to me in a dream
2026-03-23 16:15:31 +00:00
Rye 0500b6f70c fix(Message): fix type error relating to showPmPInfo 2026-03-23 15:02:27 +01:00
Rye dacab844cc fix(Message rendering): don't render the "via" for Per-Message-Profiles if the name is unset or whitespace only 2026-03-23 14:54:09 +01:00
Rye 4791ed09f4 fix(Per-Message-Profiles): whitespace only names will now disable the addition of fallback text 2026-03-23 14:46:11 +01:00
Shea Duma 6e490460d8 fixed the file description field being way too small when having the new editor 2026-03-23 14:15:00 +02:00
Shea a4cc180276 Merge branch 'dev' into Event-maxHeight 2026-03-23 12:01:26 +02:00
7w1 f0ed84bff7 Feat: Pin event styling and coloring events in timeline (#462)
<!-- Please read
https://github.com/ajbura/cinny/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description
This PR adds formatting for the pin events so that you can see the
events that have been added or removed at a glance (up to 4 as this is
what i thought was a reasonable limit maybe)
<img width="337" height="301" alt="image"
src="https://github.com/user-attachments/assets/c7aa6f02-a4d7-4b0c-9be8-fd2dcddca86e"
/>

It also adds the chosen colors of users to the events of them leaving,
joining, changing their name, the room name et cetera
<img width="540" height="206" alt="image"
src="https://github.com/user-attachments/assets/d0eeec2e-fd9c-4a68-b480-499608035986"
/>

Fixes #

#### Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] 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:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
2026-03-23 05:24:06 +00:00
7w1 1451be371c fix my merge :3 2026-03-23 00:22:35 -05:00
7w1 1a7b555baf Merge branch 'dev' into more-styled-events 2026-03-23 00:20:15 -05:00
7w1 e5fe0813ce Merge branch 'dev' into more-styled-events 2026-03-23 00:11:31 -05:00
7w1 03daf81868 feat: reply mention indicator (#465)
<!-- Please read
https://github.com/ajbura/cinny/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

in yet another episode of "mini_bomba yoinks discord features into
sable":
reply mention indicators (the @ before the username, not the yellow
highlight)
<img width="239" height="124" alt="image"
src="https://github.com/user-attachments/assets/95a7a25a-7d70-4913-8cf8-c560f8605fcd"
/>

proudly vibecoded using my brain, while referencing matrix client docs

#### Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] 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:

- [x] My code follows the style guidelines of this project
- [x] 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
- [x] My changes generate no new warnings
2026-03-23 05:09:42 +00:00
7w1 1adf98cd9b removed blocked users notice from setting (#490)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

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

Just removed the very old section in notification settings about blocked
users moving to the account tab.

#### 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:

- [x] My code follows the style guidelines of this project
- [x] 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
- [x] 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-03-23 00:03:55 -05:00
7w1 43ef337d2c Add knocking support (#470)
<!-- Please read
https://github.com/ajbura/cinny/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

This adds support for room knocking to Sable from both space hierarchy
and the room card (as seen when joining from address, clicking a room
mention, or in the featured page of discovery). It additionally adds a
new modal type that may be used for all knock attempts.

Fixes #

#### Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] 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:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
2026-03-23 05:01:25 +00:00
Shea Duma 57cbc5d499 added md 2026-03-23 07:00:31 +02:00
7w1 659c462133 remove unused imports 2026-03-22 23:54:03 -05:00
Shea Duma c04143d59d maxHeight to prevent visual overwhelming 2026-03-23 06:53:53 +02:00
7w1 15370e2340 removed blocked users notice from setting 2026-03-22 23:52:13 -05:00
7w1 4fbcfef90d feat: add editor multiline mode and many edge case fixes (#476)
### Description

Fixes #350

This adds a dynamic multiline layout to `CustomEditor`. When the message
input grows past a single line (word wrap, explicit newlines, or
multiple blocks), the editor shifts from a single-row layout into a
two-row grid, before/textarea on top, with responsive content spanning
the full width below. It drops back to single-row once the text fits on
one line again.

The old `replacementContent` prop (which swapped out the textarea on
mobile during voice recording) is gone. It's replaced by
`responsiveAfter`, which renders inline next to the send button in
single-line mode and moves down to the footer row in multiline mode.
There's also a `forceMultilineLayout` prop for when you want to push
into multiline immediately, which is what we use when the audio recorder
opens. This means the recorder now takes the same code path on desktop
and mobile instead of having a separate mobile-only branch.

A few other things got fixed along the way:

- Holding the record button on mobile was selecting the "following the
conversation" text underneath it. Fixed with `userSelect: none`.
(related to #350)
- The stop button's `onClick` was being skipped on mobile entirely, so
if `pointerup` got lost mid-drag there was no way to stop recording. Now
`onClick` works as a fallback when recording is already active. (a form
of recovery in case more situations like #350 happen again)
- The waveform bar count is now calculated from the actual container
width via `ResizeObserver` instead of a hardcoded number.
- `cleanupMediaRecorder` wasn't being called in all the
stop/delete/restart/error/unmount paths, which could leave the mic track
open. That's fixed.
- Firefox couldn't seek voice messages because `audio/webm` doesn't
include a seek index. Codec preference now puts `audio/ogg;codecs=opus`
first so Firefox records seekable blobs. Also added a `seekTo` helper
that waits for `loadedmetadata` if the audio element isn't ready yet,
and `audio.preload = 'auto'` + `audio.load()` on mount so Firefox parses
metadata right away.
- Multiline wrap detection is now debounced through
`requestAnimationFrame` and uses a `ResizeObserver` on the scroll
container to cut down on flicker and extra re-renders.
- Added cloudflared tunnels for easier testing on mobile

Also sorry for the cursed line height measurer, there was legit no other
way to detect it that didn't cause other issues.

Good amount of this was created with help of AI (like figuring out
options on how to fix the edge cases), especially the edge case unit
tests, but It had to be fixed by hand in many places and frankly I can't
tell you exactly where was what. I've been working on this for couple
days now.. (losing my mind over it)

### Screenshots:

https://github.com/user-attachments/assets/bcff3766-6c60-46c7-ac9e-a8b943a665d3

https://github.com/user-attachments/assets/367cdcc4-666e-4324-8e81-1b415feb0aca

#### Type of change
- [x] Bug fix (non-breaking change which fixes an issue)
- [x] 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:
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings

### AI disclosure:

- [x] 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).
2026-03-23 04:02:36 +00:00
7w1 6fb4f28309 fix(deps): add overrides for flatted and undici vulnerabilities (#477)
<!-- Please read
https://github.com/ajbura/cinny/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

- flatted >=3.4.2: fixes
https://github.com/advisories/GHSA-rf6f-7fwh-wjgh (prototype pollution
via parse())
- undici >=7.24.0: fixes 6 CVEs like
https://github.com/advisories/GHSA-v9p9-hfj2-hcw8 including DoS via
WebSocket frame overflow,
  decompression bombs, request smuggling, and CRLF injection

Both affect dev dependencies only (vitest, jsdom, wrangler).

#### 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:

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