Commit Graph
5067 Commits
Author SHA1 Message Date
7w1 c7913e8397 dont require livekit to answer/join calls 2026-07-16 13:12:31 -05:00
7w1 b07f7a60d9 Theme system improvements (#1087)
<!-- 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 #774 
Adds pages for tweaks/themes browsing
Adds some simple catalog auto updating based on hashes
Adds the ability to load themes from uploaded `.sable.css` files in
rooms

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

- [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).
<!-- 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. -->

Tests were AI generated
2026-07-16 12:18:22 -05:00
7w1 f5bc7594df Merge branch 'dev' into theme-system-improvements
# Conflicts:
#	src/app/components/message/MsgTypeRenderers.tsx
2026-07-16 12:11:04 -05:00
7w1 29d8df9982 only update installed themes 2026-07-16 12:03:34 -05:00
7w1 2f4dcc0d8d fix: re-anchor new messages divider at last read when tabbing out (#1095)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description
The "New Messages" divider was anchored to the read position captured
when the room was first opened (unreadInfo is computed once on mount and
never refreshed while the room stays open). So if you kept a room open,
tabbed away, and messages streamed in, the timeline auto-scrolled but
the divider stayed stuck at the open-time position instead of marking
where you actually left off.

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
- [ ] 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-07-16 15:47:26 +00:00
7w1 e13dc1616c fix: render redacted state events as deleted instead of hiding them (#1090)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

When a state event (room name, topic, avatar, membership, pins, etc.) is
redacted, Sable either:
- renders it with empty/garbage content (e.g. "changed room name" with
no name), or
- hides it entirely (the fallback handler returns null on empty content)

Fixes #988

#### 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-07-16 15:46:02 +00:00
7w1 8f7100a054 feat: show unread count in page title (#1093)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Adds an unread indicator to the browser tab <title> so a backgrounded
Sable window shows new-message state at a glance. A new PageTitleUpdater
component watches the unread atom and sets document.title to (N) Sable
Client when there are unread mentions, reverting to Sable Client when
there are none.

<img width="171" height="34" alt="image"
src="https://github.com/user-attachments/assets/f9ab0428-8de6-4254-820d-2462a130a47c"
/>

Fixes #1082

#### 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
- [ ] 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-07-16 15:41:49 +00:00
Erwan Leboucher 6412a0ac91 feat: show unread count in page title 2026-07-16 10:58:47 +02:00
Erwan Leboucher f3cb4b74c5 fix: re-anchor new messages divider at last read when tabbing out 2026-07-16 10:41:24 +02:00
Erwan Leboucher 8d8692daec fix: render redacted state events as deleted instead of hiding them 2026-07-15 23:34:55 +02:00
7w1 ae69b8bbaf fix: render redacted messages as deleted instead of unsupported (#1089)
<!-- 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. -->

When sliding sync delivers a message that has been redacted, the
redaction event may not be in the client's timeline. In this case,
mEvent.isRedacted() returns false even though the event content has
already been stripped to {}.

Sable's timeline renderer only checked isRedacted(), so these messages
fell through to the fallback renderer and displayed as "Unsupported
message (no body)".
This adds an isContentEmpty check (Object.keys(safeContent).length ===
0) so that m.room.message events with empty content render as "Message
deleted" instead.

<img width="321" height="73" alt="Screenshot 2026-07-15 at 22 57 30"
src="https://github.com/user-attachments/assets/82cae806-1a14-473d-b45c-045de6032b81"
/>

```json
{
"content": {},
"origin_server_ts": 1784136316933
},
...
{
   "content": {
                "redacts": "$3xt7_zZiHMYPEdrDXaEFvu5cPtv-flc-oijPuv9elbU"
            },
            "origin_server_ts": 1784136364105,
```

#### 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
- [ ] 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-07-15 21:16:47 +00:00
Erwan Leboucher 2b1f7c5971 fix: render redacted messages as deleted instead of unsupported 2026-07-15 23:10:02 +02:00
7w1 ea95d17f99 Fix file downloads not always being the right files (#1086)
<!-- 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 #1084 

Centralizes the download file name generation and adds some related
safety and hardening

#### 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-07-15 16:08:45 -05:00
7w1 6f73b46c0e fix: allow joining spaces with sliding sync enabled (#1085)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

With sliding sync enabled, joining a space was impossible. The root
cause was a navigation dead-end: when a room's m.room.create event
wasn't yet in the client store (common with sliding sync's delivery
model), isSpaceRoom() returned false, causing spaces to be misrouted.

<!-- 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

- [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-07-15 19:42:06 +00:00
Erwan Leboucher fae12afe10 fix: allow joining spaces with sliding sync enabled 2026-07-15 21:40:22 +02:00
7w1 98ecbaebce show room members in dev tools (#1088)
<!-- 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. -->

removing a cinnyism

#### 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-07-15 14:35:42 -05:00
7w1 d098e77130 show room members in dev tools 2026-07-15 14:33:08 -05:00
7w1 4b9b937bc4 Fix presence fallback ignoring key updates (#1078)
<!-- 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. -->

I think the fallback presence sync for sliding sync was consuming crypto
related data and discarding it, which could result in it being lost if
it was sent through that path, now it should be properly forwarded and
the fallback is properly disabled entirely for classic sync.

Fixes #1075 

#### 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-07-15 13:01:16 -05:00
7w1 d323512be5 changeset 2026-07-15 12:47:34 -05:00
7w1 34fd91127e cleanup and style adjustments 2026-07-15 12:46:20 -05:00
7w1 3a000c7bfc make download names smarter 2026-07-15 11:49:28 -05:00
7w1 392e455c05 Lower amount of unauthentificated media requests (#1080)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

very bodgy fix for a very specific firefox issue but it works well
enough.

does not have a changeset just because it is a very niche thing that
still needs a lot more love and should realistically require rewriting
how media is fetched entirely to move away from a sw

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:

- [ ] 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-07-15 16:07:00 +00:00
7w1 9bdba8f956 Add Native OIDC (OAuth 2.0) login (#1071)
### Description

Adds Native OIDC (Matrix OAuth 2.0 API) login and registration so Sable
works with homeservers that use delegated auth including those that run
OAuth-exclusive and disable the legacy /login endpoints.

Fixes #1066

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

<!-- fmt:check, lint, typecheck, knip and test:run all pass locally. -->

### 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).

Code completion and 2nd code review
2026-07-15 16:05:47 +00:00
7w1 7997832019 auto updating 2026-07-15 10:51:41 -05:00
Shea 1642277993 bodge to try to lower the ammount of unauthentificated media requests
Signed-off-by: Shea <[email protected]>
2026-07-15 10:39:53 +03:00
7w1 2ba185145d support theme file uploads 2026-07-14 23:01:47 -05:00
7w1 3b3a0121ac fix presence fallback ignoring key updates 2026-07-14 18:26:07 -05:00
Erwan Leboucher a4cdd156c9 Add Native OIDC (OAuth 2.0) login 2026-07-14 22:14:45 +02:00
7w1 e4f194bed4 Hide register link when registration is disabled (#1073)
### Description

When a homeserver has registration disabled, the Login page still showed
a "Do not have an account? Register" prompt that led to a dead-end
Register page (which only renders "Registration has been disabled on
this homeserver."). This hides that prompt when registration is
genuinely unavailable, the server reports registration disabled (403
`M_FORBIDDEN`) and offers no SSO flow to register through. Password and
SSO login are unaffected, and the Register page keeps its message as a
fallback for direct navigation.

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

<!-- fmt:check, lint, typecheck, knip and test:run all pass locally. -->

### 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).

code completion and 2nd review
2026-07-13 19:07:10 +00:00
Erwan Leboucher 3e4acb7985 Add changeset 2026-07-13 20:08:47 +02:00
7w1 2e6a6ace8e Fix more Visual things (#1068)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Fix clicking handles, the coloring of heros, and ghost reaction things,
though through a massive hack :>

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

Fixes #1067

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

Written w the assistance of rewatching old tom scott videos
2026-07-13 18:06:05 +00:00
7w1 836a688c19 Fix animal identity resetting (#1070)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Fixes the animal identity, and adds more whimsy to the client, dont read
the pr if you dont wanna get spoiled on a probably not significant
change

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

Fixes #1040

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

- [ ] 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. -->
Written in order to sablize the client
2026-07-13 18:05:02 +00:00
Erwan Leboucher 9e80f56eae Hide register link when registration is disabled 2026-07-13 19:55:20 +02:00
Shea f1cd82342d fix ghost reactions through an objective hack but the sdk is the sdk
Signed-off-by: Shea <[email protected]>
2026-07-13 07:37:07 +03:00
Shea 76d50188c9 fix animal identity resetting
Signed-off-by: Shea <[email protected]>
2026-07-13 05:21:06 +03:00
Shea b2d196447f fix unclickable handles and hard to see handles
Signed-off-by: Shea <[email protected]>
2026-07-12 22:39:08 +03:00
7w1 d8938a625d chore: prepare release 1.19.4 (#1058)
> [!IMPORTANT]
> Merging this PR will create a new release.

## Fixes

* Fix some image embeds not creating embeds.
([#1062](<https://github.com/SableClient/Sable/pull/1062>) by @7w1)
* Allow rooms with empty local parts to be viewed.
([#1062](<https://github.com/SableClient/Sable/pull/1062>) by @7w1)
* Fix the account button showing you 0 sessions active and the verify
this device showing when you have zero devices to verify
([#1064](<https://github.com/SableClient/Sable/pull/1064>) by @nushea)
* Various performance optimizations
([#1062](<https://github.com/SableClient/Sable/pull/1062>) by @7w1)
* Fixed the entire timeline being rerendered every time you scroll :P
([#1055](<https://github.com/SableClient/Sable/pull/1055>) by @7w1)

## Notes

* Added a new workflow that automatically previews dev on
[dev.sable.moe](https://dev.sable.moe)
([#1059](<https://github.com/SableClient/Sable/pull/1059>) by @7w1)
v1.19.4
2026-07-12 16:28:50 +00:00
github-actions[bot] aaa6f95aa9 chore: prepare release 1.19.4 2026-07-12 15:14:03 +00:00
7w1 4cf2800e0f Fix unverified counter (#1064)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Fix Unverified counter for the account sessions.

It also Fixes one visual error

And lastly it disables the sliding sync by default maybe, it can be
reverted on that but, even though the feature seems to be working very
well, it is not something that someone would have a reason to care to
use unless they are really pressed for resources and is otherwise not
useful seeing the occasional extra bug

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

Fixes #1052

#### 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. -->
Written w the assistance of some brined mozzarella
2026-07-12 15:11:24 +00:00
Shea 3fcc84ac4c Merge branch 'dev' into fix/minor-fixes
Merge
2026-07-12 16:37:10 +03:00
Shea 68ad480d7f maybe more stringent rules maybe
Signed-off-by: Shea <[email protected]>
2026-07-12 16:35:52 +03:00
7w1 53cc8593af Fix settings updates not updating timeline (#1063)
<!-- 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. -->

Setting changes didn't immediately update the timeline (e.g. toggling
dev mode not showing view source on messages) due to the optimizations

#### 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-07-11 23:27:59 -05:00
7w1 6d1fd022b3 ensure more things trigger rerenders 2026-07-11 23:25:06 -05:00
7w1 efb7a68dbd Fix settings updates not updating timeline 2026-07-11 20:27:08 -05:00
7w1 93ada7e839 Further timeline performance improvements (#1062)
<!-- 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. -->

Smarter memoization of timeline events to prevent complete rerenders
when new messages come in/reactions/etc
Avoids creating multiple dom purify instances
Allows rooms without local parts to be viewed, e.g. #:maunium.net
Removed a legacy direct media render path for bigger images that's no
longer used, and was inadvertently filtering out many urls

#### 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-07-11 19:18:32 -05:00
7w1 a69187d0b0 formatting the third 2026-07-11 19:15:28 -05:00
7w1 66e2f8b079 remove legacy rendering logic that filtered out some urls 2026-07-11 19:13:58 -05:00
7w1 eb04e94388 formatting part 2 2026-07-11 19:01:20 -05:00
7w1 573ed9ba48 formatting 2026-07-11 18:55:52 -05:00
7w1 ebd0e2af7a Optimize DOMPurify instantiation in sanitize 2026-07-11 18:53:58 -05:00