Commit Graph
6704 Commits
Author SHA1 Message Date
Shea ad26512cb9 merge upstream
Signed-off-by: Shea <[email protected]>
2026-06-14 05:45:30 +03:00
Shea f0b2eaf3eb feat dismiss invites
Signed-off-by: Shea <[email protected]>
2026-06-14 05:33:58 +03:00
7w1 285a76bc8b More hidden events & Phosphor Icons replacement & Add reactions button (#934)
<!-- 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. -->

Copied from changesets :p

Add more hidden timeline events with settings and rendering.

#### Settings

- Add a master Show Hidden Events toggle with per-type sub-toggles for
message edits, redactions, reactions, and other unrecognized events
- Sub-toggles stay visible beneath the master toggle and are disabled
while hidden events are off
- Fold the redacted-message tombstone setting into the redactions group
and migrate existing tombstone preferences

#### Timeline filtering and rendering

- Show message edits as timeline events with reply navigation and an
inline word/line diff between versions
- Show reactions, message redactions, and reaction redactions as
timeline events instead of message bubbles
- Keep redacted reactions in the timeline as tombstones with redaction
events linking back to them when possible
- Improve reply-chip previews for edits, redactions, reactions, and
redacted targets
- Merge related edit and reaction events into the timeline when they are
missing from pagination

#### Safeguards

- Hide forward, delete, and other message actions on timeline meta
events that cannot be forwarded or meaningfully deleted
- Disallow forwarding deleted messages and other non-message event types

Migrated all icons to Phosphor Icons and added a setting to display
globe/lock icon instead of the hash tag for the room sidebar.

Added a reaction shortcut when a message already has a reaction.

+ fixed the polls changeset formatting a little, i think...

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

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

AI did the bit of test generation and assisted with some of the bulk
icon replacement, although the icons were manually picked out.
2026-06-13 21:31:22 -05:00
7w1 489c49bb3d adjust changeset 2026-06-13 21:29:17 -05:00
7w1 db6c3187dd toggle inline add reaction fill state with menu 2026-06-13 21:26:11 -05:00
7w1 13af13a512 Basic matrix uri support (#935)
<!-- 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. -->

Support for rendering incoming matrix uri mentions/links/whatever,
doesn't change sending at all, just adds support for rendering incoming
ones.

Fixes #718 

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

- [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-06-13 21:25:32 -05:00
7w1 082082baff change default settings 2026-06-13 21:20:43 -05:00
7w1 be86a837ff dont fill overlay icons in sidebar 2026-06-13 21:06:33 -05:00
7w1 ae13621d4f swap at icon with @ text 2026-06-13 21:02:54 -05:00
7w1 8d9be0ba20 a couple icon size adjustments and add reaction shortcut 2026-06-13 20:51:51 -05:00
7w1 e29de131c8 formatting and tests and changeset 2026-06-13 20:39:27 -05:00
7w1 c9c3bf318c add to sanitizer 2026-06-13 20:03:49 -05:00
7w1 2912b2c56c hook parser into parser 2026-06-13 19:56:01 -05:00
7w1 3695ef60b4 matrix uri parser 2026-06-13 19:43:33 -05:00
7w1 21510fceaf fix deprecated icon imports and some formatting 2026-06-13 19:23:51 -05:00
7w1 6b9c7ac582 formatting 2026-06-13 18:04:20 -05:00
7w1 9c751bd6c7 bulk rename iconAt to sizedIcon
was a silly choice
2026-06-13 18:04:05 -05:00
7w1 d5ab7e946e formatting
dumb vscode
2026-06-13 17:59:42 -05:00
7w1 cdf20c4586 minor size adjustments for some icons 2026-06-13 17:55:51 -05:00
7w1 221c2e7c25 phosphor icons 2026-06-13 17:50:02 -05:00
7w1 5af26467bb changeset and polls changeset adjustment 2026-06-13 14:22:29 -05:00
7w1 2b3bc5b5f3 tons of hidden event toggles and rendering
among other patches
git history was getting far too messy so single big commit it is
2026-06-13 14:15:14 -05:00
7w1 a866a5a233 Fix more highlighting problems and 1767 events reply setting issues (#933)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

This PR fixes even more highlighting issues and fixes replying to
msc1767 only compliant events (events that would miss a .body but would
have a M_TEXT as a body or a M_TEXT.body as the body)

This is marked internal as this is only the case for events specially
crafted from weird clients, and because of polls

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

- [ ] 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 with the assistance of my blahaj
2026-06-13 17:19:49 +00:00
Shea 6693347c2e fix more highlighting problems and 1767 events reply setting issues
Signed-off-by: Shea <[email protected]>
2026-06-13 17:29:27 +03:00
Shea 915800cfbd fix sdk issue within the poll <3 (#932)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

While troubleshooting the new features for any bugs i noticed that some
time events dont propagate their sender properly, used the function even
tho its more overhead just because it is more reliable <3

<!-- 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
- [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. -->
written with the anxiety of sending a common weird sdk "feature"
2026-06-12 23:10:31 +00:00
Shea 1ee6a36ef2 fix stupid sdk issue <3
Signed-off-by: Shea <[email protected]>
2026-06-13 02:00:10 +03:00
sable-actions[bot] ee46df2e9e chore(nix): auto-fix nix hashes 2026-06-12 21:43:41 +00:00
7w1 53fd99347f Feat location (#927)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

There is a doc written for this under
https://github.com/SableClient/docs/pull/16

Add location modal, this adds a dependency to leaflet, it is a slightly
outdated version to fit in with our react version

(look of a location shared)
<img width="1474" height="940" alt="image"
src="https://github.com/user-attachments/assets/7838119b-37af-4ad4-b79b-34656f23b5f1"
/>

(look of the add menu)
<img width="155" height="169" alt="image"
src="https://github.com/user-attachments/assets/74eb1bf2-15c7-4a79-8c06-6ddca0b2ff8c"
/>

(look of the location sharing modal)
<img width="503" height="646" alt="image"
src="https://github.com/user-attachments/assets/05afa98c-28cb-49e4-bd49-e61818f95148"
/>
From here you can paste coords, or links to osm, geo:, or apple long
links, i have decided against short links at this time as they seem to
not be working reliably

(look of the 2 new settings as it is a feature that makes external
calls)
<img width="808" height="689" alt="image"
src="https://github.com/user-attachments/assets/428668f3-51dd-46b5-8ef9-1a7a5b72ee46"
/>

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

### 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 with the love of fancy accidental self-doxxing
2026-06-12 21:39:43 +00:00
Shea 5f5be0f230 fix typo and add catch
Signed-off-by: Shea <[email protected]>
2026-06-12 23:43:38 +03:00
7w1 6bfd2b9fcb fix root element in thread looking wrongly selected (#929)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Fix the topmost item in a thread looking highlighted when it shouldnt,
but it still highlights if you specifically want to actually reply to it
it
<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->
Fixes #

#### 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. -->
Written with the inspiration of eating by and by
2026-06-12 17:46:56 +00:00
Shea 30a4abbad1 add full new key to avoid weird edgecase
Signed-off-by: Shea <[email protected]>
2026-06-12 17:07:56 +03:00
Shea 7fd1ac006e fix root element in thread looking wrongly selected
Signed-off-by: Shea <[email protected]>
2026-06-12 16:25:34 +03:00
Shea b4f4c8f343 fix root element in thread looking wrongly selected
Signed-off-by: Shea <[email protected]>
2026-06-12 16:24:06 +03:00
Shea 073232f026 fix styling separation
Signed-off-by: Shea <[email protected]>
2026-06-11 22:46:08 +03:00
Shea 1e14b47c8a merge upstream
Signed-off-by: Shea <[email protected]>
2026-06-11 22:26:15 +03:00
7w1 c903b0e3af Feat: Add polls (#916)
<!-- 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. -->

There is a docs written for this feature as
https://github.com/SableClient/docs/pull/16

Adds poll events, a poll creation modal, a poll respones modal similar
to the reactions one, a /poll command, changes the plus button in the
editor to add a menu where the location should be located aswell when
implemented, changes the pin behavior to make it so that any click on it
takes you there as opposed to needing to hit a small button to align
with other platform.

The creation of a new implementation was required as the upstream
variant is completely spec-non-compliant, incomplete and broken, so this
implementation supersedes it.

(simple snapshot of the change)
<img width="1665" height="1080" alt="image"
src="https://github.com/user-attachments/assets/4b0552af-dc1b-47d6-8269-ba45cc14759c"
/>

(examples of the poll creation modal)
<img width="516" height="556" alt="image"
src="https://github.com/user-attachments/assets/0ca22932-6210-4bf6-9088-bae6106a0390"
/>
<img width="516" height="509" alt="image"
src="https://github.com/user-attachments/assets/7d438099-0c78-4b52-8622-f283ae2505e7"
/>

(the new menu in the editor)
<img width="130" height="132" alt="image"
src="https://github.com/user-attachments/assets/a48784ba-1e2f-4b49-b2dc-76915064902f"
/>

(the setting to turn it off)
<img width="815" height="697" alt="image"
src="https://github.com/user-attachments/assets/0893285c-acf5-4d7a-92a6-a189385056c1"
/>

(example of look before you cast your vote)
<img width="571" height="216" alt="image"
src="https://github.com/user-attachments/assets/bd45d760-1502-416b-be9c-ae4e47df1673"
/>

(example of undisclosed vote)
<img width="578" height="220" alt="image"
src="https://github.com/user-attachments/assets/e988697a-8b30-4da3-9b2f-c3a53cb92bb3"
/>

(example of multiple a choice question)
<img width="558" height="503" alt="image"
src="https://github.com/user-attachments/assets/09c3b815-e1de-4521-bf07-b7efede785f4"
/>

(modal for the voters, chose this size in case that the options become
very long)
<img width="816" height="698" alt="image"
src="https://github.com/user-attachments/assets/c36dea97-c8ce-4e89-9c5b-d070f8ab3d1a"
/>
<img width="813" height="700" alt="image"
src="https://github.com/user-attachments/assets/b5922cd3-593d-4a23-8549-db2aa38662f1"
/>

i still so wish more people could test this maybe maybe maybe before
merge

I would be very happy to change anything visually about these polls

Fixes #

#### Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [x] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [x] 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 with the unyielding need of polls as message types

Signed-off-by: Shea <[email protected]>
2026-06-11 19:05:12 +00:00
Shea 13bfa91b98 change it to fill soft
Signed-off-by: Shea <[email protected]>
2026-06-11 19:22:33 +03:00
Shea 63e60be3aa merge upstream
Signed-off-by: Shea <[email protected]>
2026-06-11 19:11:45 +03:00
Shea cce2cfa614 styling changes
Signed-off-by: Shea <[email protected]>
2026-06-11 18:58:09 +03:00
Shea 92fa7a1f18 fix merge conflict
Signed-off-by: Shea <[email protected]>
2026-06-11 18:11:06 +03:00
Shea a040c5d552 style dialog and make command more useful
Signed-off-by: Shea <[email protected]>
2026-06-11 18:03:37 +03:00
7w1 f5b81ea7c9 Image viewer changes (#919)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description
Change Pixelation options to be never smart or always, removing the
chat/image-viewer distinction

The 'smart' setting marks images smaller than 192 (128+64) as pixelart
by default, this means that the image will appear crisp in the regular
chat, and will default to crisp in the image viewer, and if the image is
any bigger it will become anti-aliased in both.

However, if someone wants to see an image of a higher resolution as
pixelart they now have a button next to the reset view options to toggle
pixelation and anti-alias.

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
- [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. -->
This code was written with the boredom of not having anything better to
do
2026-06-09 18:52:01 +00:00
Shea d56f9bf6e9 implement sharing map locations
Signed-off-by: Shea <[email protected]>
2026-06-09 10:30:53 +03:00
Shea 9b6f2fbd79 implement rendering maps in sharing location
Signed-off-by: Shea <[email protected]>
2026-06-06 22:03:35 +03:00
Shea 107f31482a Merge remote-tracking branch 'origin/dev' into feat-location 2026-06-05 15:48:36 +03:00
Shea 9b33efcbfa implement 'smart' pixelation in chat
Signed-off-by: Shea <[email protected]>
2026-06-05 07:33:53 +03:00
Shea 663f117432 fix overflows and filename-less files (#917)
<!-- 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. -->

The changes are broader to account for potential other items overflowing
their size and breaking edits and downloading with the wrong name

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. -->
Written with the assistance of the voices
2026-06-05 04:14:11 +00:00
Shea c119bc261d change pixelation style
Signed-off-by: Shea <[email protected]>
2026-06-05 05:07:22 +03:00
Shea 0487b72862 fix overflows and filename-less files
Signed-off-by: Shea <[email protected]>
2026-06-03 14:45:41 +03:00
Shea 5e5122302d some stylistic changes
Signed-off-by: Shea <[email protected]>
2026-06-03 11:53:28 +03:00