Commit Graph
692 Commits
Author SHA1 Message Date
7w1 aa93278d6d fix empty messages 2026-05-05 17:27:50 -05:00
7w1 34fbfdacbe Refactor codebase and standardize unstable prefix usage (#746)
### Description

This pull request standardizes the usage of Matrix event content keys by
replacing hardcoded property names and older constants with centralized,
unstable prefix constants imported from the `$unstable/prefixes` module.
This change improves maintainability and consistency across the
codebase, especially in handling experimental or non-standard Matrix
properties.

The most important changes are as follows:

##### Prefix Standardization and Centralization 
Replaced all hardcoded Matrix property names and older constants (e.g.,
`'com.beeper.per_message_profile'`, `'com.beeper.linkpreviews'`, etc.)
with corresponding constants from the `$unstable/prefixes` module
throughout the codebase, including message rendering, room creation,
user profiles, and input handling.

##### Message Content Handling
Updated all logic for reading, writing, and deleting Matrix event
content properties (e.g., per-message profiles, link previews, image
source packs, spoilers, blur hashes, forward metadata) to use the new
prefix constants, ensuring consistent access and mutation of event
content.

##### User Profile and Room Metadata
Updated user profile extended keys (such as bio, banner, pronouns,
timezone, animal identity) in `UserRoomProfile.tsx` to use the new
prefix constants, replacing all previous hardcoded or legacy key
strings.

##### Room Creation and Calls
Changed the room call state event type to use the new unstable prefix
constant in room creation utilities.

##### Code Clean-up
Removed now-unused imports of old constants from files where they have
been replaced with the new prefix-based constants.

These changes collectively improve the code's future compatibility with
evolving Matrix specifications and make it easier to update property
names as they stabilize.

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

Shouldn't cause user facing changes

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

No AI usage
2026-05-05 15:25:53 -05:00
7w1 60c9db8c52 fix emoticon not properly converting when editing messages 2026-05-05 13:54:14 -05:00
Rye e6858778c2 refactor: standardize usage of unstable prefixes across components 2026-05-05 18:21:36 +02:00
Rye 8ecd3e80fb refactor(unstable prefixes): inital refactor to clean up the codebase 2026-05-05 16:47:02 +02:00
Shea Duma c52a07a46a fix some newly introduced linkpreview bugs 2026-05-05 16:42:08 +03:00
7w1 5369d9b0ec Minor dev only patches (#738)
<!-- 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. -->

Fix some of the layout styling for consistency in the themes browsing
menus.
Fix bundled url previews for pmp messages.

#### 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-05 00:25:56 -05:00
7w1 61f2b09def fix bundled urls with pmps 2026-05-05 00:18:40 -05:00
7w1 6122161f8a animate apngs and changeset fixes 2026-05-04 23:23:38 -05:00
7w1 e6a7746430 Error message for theme favoriting errors 2026-05-04 22:59:16 -05:00
7w1 c87630eb4c add export button and update changeset 2026-05-04 22:49:02 -05:00
7w1 af52a55aaa Improve theme loading disclaimers and chat preview setting options 2026-05-04 22:24:16 -05:00
7w1 e5bc629691 reverse theme source approval logic, empty is none 2026-05-04 21:58:51 -05:00
7w1 eeab65b121 Consolidate theme cards a little 2026-05-04 21:25:32 -05:00
7w1 e635e9d28b Remove the no preview tokens in this tweak text 2026-05-04 20:54:02 -05:00
7w1 1a6d6f4584 Merge branch 'dev' into feat/theme-edits-v2 2026-05-04 20:42:58 -05:00
7w1 7f62d389e8 replace setting with options to only render dark/light profiles 2026-05-04 20:37:28 -05:00
Shea Duma 1345a0b41e ill stop playing around with the minutia 2026-05-05 04:21:50 +03:00
Shea Duma fb988dd20f merged and added setting 2026-05-05 03:34:12 +03:00
7w1 3b6fd542fd Add partial MSC4459 support and refactor related code (#730)
### Description

partial implementation of
[MSC4459](https://github.com/matrix-org/matrix-spec-proposals/pull/4459)

Currently only sending the data and not rendering anything

Partially #729

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

No AI used
2026-05-04 21:46:10 +00:00
Shea f44835df01 Make the Read Receipts dialog scrollable again (#631)
### Description

At some point between commits
[43cb531](https://github.com/SableClient/Sable/commit/43cb5313be960746c984bbf1336f1a0dfde078a4)
and
[f4cc4d5](https://github.com/SableClient/Sable/commit/f4cc4d51de4301c8e3f201ecc2aec4bb7604cc1d),
in the process of switching various UI elements into unified modals, the
read receipts modal (specifically the one that opens from an individual
message's context menu) lost its ability to be scrolled through.

In this patch, I've reverted that specific component to its old form,
both to immediately return the functionality and to provide a useful
reference state for the process of creating a more polished fix.

I recommend directly patching this pull request to properly unify the
modals first, but it _should_ be functional enough on its own to be
implemented as an immediate fix if you prefer.

#### 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).
2026-05-04 21:42:54 +00:00
7w1 4f5f6e662a Merge branch 'dev' into feat/msc4459 2026-05-04 16:40:28 -05:00
Rye 3d1b1026bb fix(formatting): fix formatting issues 2026-05-03 19:11:48 +02:00
Rye cbe38bae35 Merge branch 'dev' into feat/msc4459 2026-05-03 18:34:54 +02:00
Rye 6a4d5059b8 fix(msc4459): refactoring and restricting getImagePackReferencesForMxc to public rooms 2026-05-03 18:19:45 +02:00
Rye f518ff50fe fixup! initial commit for MSC4459 support + a fair bit of refactoring 2026-05-03 17:20:19 +02:00
Rye 0e61fc9cdb initial commit for MSC4459 support + a fair bit of refactoring 2026-05-03 17:17:43 +02:00
Shea Duma d4cf86094c fix - scrollable read receipts 2026-05-01 05:01:02 +03:00
Shea Duma 59f8702674 minimal fix 2026-05-01 04:59:25 +03:00
Shea Duma 777493771a Reseparated items 2026-05-01 04:16:24 +03:00
7w1 c8851c32a2 remove WYSIWYG editor 2026-04-30 14:37:28 -05:00
7w1 f130f4e2fe fix typecheck 2026-04-30 10:59:59 -05:00
7w1 122a0e2f25 update tests 2026-04-30 10:56:22 -05:00
7w1 307f3b107d formatting and linting 2026-04-30 10:51:35 -05:00
7w1 5c2a528229 remove the standard markdown extra new lines 2026-04-30 10:32:25 -05:00
7w1 6aa8dde28d formatting... 2026-04-30 09:41:16 -05:00
7w1 982c87557e firefox list fix 2026-04-30 09:39:43 -05:00
7w1 34b01b40a2 swap to new htmltomarkdown parser 2026-04-30 01:38:16 -05:00
7w1 2598f3dbf8 fix newlines at start of codeblocks 2026-04-30 01:26:46 -05:00
7w1 5832b71da1 deduplicate the url things + fix code block urls 2026-04-30 00:48:43 -05:00
7w1 7aa82bb9d4 always open links in new tab 2026-04-30 00:43:12 -05:00
7w1 c59c81ed39 linting & formatting 2026-04-30 00:38:20 -05:00
7w1 4758150355 fix pmp new lines 2026-04-30 00:20:09 -05:00
7w1 0c797c84eb fix list editing + changeset 2026-04-30 00:08:36 -05:00
7w1 b0240aa4d3 merge dev and fix spoiler/preview handling 2026-04-29 18:10:39 -05:00
7w1 c0fb11663f hook it up + small text support 2026-04-29 17:18:40 -05:00
7w1 5f62cac9f2 Add preventing url preview cards by surrounding a link in anglebrackets (#717)
<!-- 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 implements preventing previews by surrounding a link in angle
brackets, it hides the angle brackets in both the formatted_body and the
regular body, and instead adds the links as skeletons to the bundled
previews.

This PR also serves as scaffolding for implementing the actual bundled
previews.

(example of the 4 usages)
<img width="935" height="861" alt="image"
src="https://github.com/user-attachments/assets/6abe5b6a-28ad-4a16-92a1-3c1483c565af"
/>
<img width="999" height="837" alt="image"
src="https://github.com/user-attachments/assets/b4198734-4a3c-4320-ad2c-a1782b40d375"
/>

This PR matches the features #552 but uses the new standard way instead
of an ad hoc solution

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

### 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] 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. -->
My will be sin eater will clear me of the sin of having implemented
this.
2026-04-29 21:48:49 +00:00
7w1 3d286839d4 basic marked markdown processing 2026-04-29 16:39:50 -05:00
Shea Duma 94344e62cc ensure favorites is not undefined 2026-04-29 04:47:11 +03:00
Shea Duma 8307e4a17e DEV - Room Search Fix 2026-04-28 05:46:16 +03:00