Commit Graph
6704 Commits
Author SHA1 Message Date
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 2ec3083b6f fix: re-anchor new messages divider at last read when tabbing out 2026-07-16 10:06:58 +02:00
Erwan Leboucher 5123fa0cef fix: stop presence sync from resetting user status to online 2026-07-16 09:17:37 +02:00
Erwan Leboucher e89de8cb58 feat: show unread count in page title 2026-07-16 09:16:36 +02:00
7w1 b68bc73e80 fix unreads
seems to require a timeline item sadly
2026-07-15 17:41:29 -05:00
7w1 071b29bff7 adjust sliding sync toggle style and login with sso compatibility 2026-07-15 17:10:28 -05:00
7w1 539125cb14 fix presence sync and member list subscription 2026-07-15 16:48:44 -05: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
7w1 1300e3ac1c stabilize sliding sync room state and membership updates 2026-07-15 16:11:27 -05: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 487955465e Merge branch 'dev' into sliding-sync-stablization
# Conflicts:
#	src/app/pages/auth/login/loginUtil.ts
#	src/app/pages/client/BackgroundNotifications.tsx
#	src/app/pages/client/space/SpaceProvider.tsx
#	src/client/initMatrix.ts
2026-07-15 14:59:29 -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
7w1 a463709928 cache space and room layout 2026-07-14 17:38:36 -05:00
7w1 c3975cdbb2 load initial room with first sync and bump poll time 2026-07-14 16:32:57 -05:00
7w1 0f8ce00b6b loader for rooms 2026-07-14 16:05:06 -05:00
7w1 9fbd2e5c6c some clean up 2026-07-14 15:52:30 -05:00
Erwan Leboucher a4cdd156c9 Add Native OIDC (OAuth 2.0) login 2026-07-14 22:14:45 +02:00
7w1 25a3c21de1 Merge branch 'dev' into sliding-sync-stablization 2026-07-14 12:32:28 -05:00
7w1 b64cb8b333 fix sync when open room, and clean up sync sizes and data, other stuff i forgot 2026-07-13 23:30:05 -05:00
7w1 04a0649cdb remove full cleanup from every start 2026-07-13 14:42:40 -05:00
7w1 5f5e0a8a12 delay presence until first sync 2026-07-13 14:09:11 -05: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
7w1 6be3d0a986 gate ui behind first usable sync response 2026-07-13 13:49:50 -05:00
7w1 3713694575 fetch image packs when needed 2026-07-13 13:25:34 -05: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
7w1 9b2fa13ac1 add join rules to request data 2026-07-13 13:00:07 -05:00
Erwan Leboucher 9e80f56eae Hide register link when registration is disabled 2026-07-13 19:55:20 +02:00
7w1 67cb91546f remove the rest of sliding sync config 2026-07-13 12:25:46 -05:00
7w1 5855969295 remove maxRooms and reduce initial sync 2026-07-13 11:38:43 -05:00
7w1 82b1feee3c concurrent crypto and sync store start up 2026-07-13 11:03:42 -05: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