Commit Graph
3960 Commits
Author SHA1 Message Date
hazre 3bb692fdb0 Merge branch 'dev' of github.com:SableClient/Sable into hazre/feat/arborium-migration
# Conflicts:
#	src/app/plugins/react-custom-html-parser.test.tsx
#	src/app/plugins/react-custom-html-parser.tsx
#	src/app/utils/sanitize.test.ts
#	src/app/utils/sanitize.ts
2026-03-30 23:30:29 +02:00
7w1 6d6d163c05 Fix keyboard shortcut modifiers (removing redundant identity replacement) (#597)
fix for https://github.com/SableClient/Sable/security/code-scanning/1
removed the redundant replacement with it self.

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

codeql was used, if that counts, but it was a one line change, so no AI
was used
2026-03-30 05:06:06 +00:00
Rose 7213aff4fc Fix keyboard shortcut modifiers for Mac users
fix for https://github.com/SableClient/Sable/security/code-scanning/1
2026-03-30 06:37:55 +02:00
7w1 63afb74a48 chore: prepare release 1.13.1 (#581)
> [!IMPORTANT]
> Merging this PR will create a new release.

## Fixes

* Add youtube shorts support to stop it from crashing sable.
([#578](https://github.com/SableClient/Sable/pull/578) by @nushea)
* Fix rich-text reply previews and custom-formatted messages so unsafe
HTML is filtered more strictly and Matrix colors render correctly.
([#571](https://github.com/SableClient/Sable/pull/571) by @hazre)
* Fix crash when previewing non-video YouTube URLs (channels, @handles,
etc.) that lack query parameters.
([#584](https://github.com/SableClient/Sable/pull/584) by @Just-Insane)
* fix id handling and id generation for Personas
([#583](https://github.com/SableClient/Sable/pull/583) by @dozro)
2026-03-30 03:55:05 +00:00
github-actions[bot] 7661bfa2e4 chore: prepare release 1.13.1 2026-03-30 03:33:46 +00:00
7w1 f60bd221f9 fix(url-preview): guard against undefined query string in YouTube URL parser (#584)
### Description

Fixes a crash when any non-video YouTube URL is previewed — channels
(`youtube.com/@handle`), channel IDs (`youtube.com/channel/...`), or any
URL path without a `?` query string.

The existing code (even after #578) had:
```ts
params = path.split('?')[1].split('&');
```
When there is no `?` in the URL, `split('?')[1]` returns `undefined`,
and calling `.split('&')` on it throws:
> `TypeError: Cannot read properties of undefined (reading 'split')`

Fixed with optional chaining + nullish fallback:
```ts
params = path.split('?')[1]?.split('&') ?? [];
```

This causes `videoId` to remain `undefined` for non-video URLs, which is
handled correctly by the existing `if (!videoId) return null` guard —
the preview simply doesn't render rather than crashing the entire app.

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:

- [x] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).

AI identified the root cause after reviewing the PR #578 diff — the
shorts fix added the `/shorts/` branch but left the original
`youtube.com` branch with the same unguarded `.split()` call. The
one-line fix (`?.split('&') ?? []`) was AI-suggested; I reviewed and
confirmed it is correct.
2026-03-30 03:31:15 +00:00
7w1 4a110ea05d revert extraneous changes 2026-03-29 22:25:47 -05:00
Rose 4be43b5e88 Add CodeQL analysis workflow configuration (#567)
adds a workflow to run codeql as ci job
2026-03-30 02:59:12 +00:00
7w1 4d2fcfccbe fix: harden Matrix HTML sanitization (#571)
### Description

- switch Matrix custom HTML sanitization from `sanitize-html` to
`DOMPurify`
- enforce the Matrix v1.18 tag and attribute allowlist exactly,
including scheme and `mxc://` restrictions
- sanitize reply previews before trimming/parsing so untrusted
`formatted_body` never reaches the reply extraction path unsanitized
- move `data-mx-color` and `data-mx-bg-color` translation to render time
and explicitly ignore incoming `style` in the HTML parser
- use `sanitizeText` for plain-text interpolation paths that were
previously running through the HTML sanitizer
- add regression tests for sanitizer allowlist behavior, reply preview
sanitization, parser color translation, and parser-side style stripping

#### 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).
- [x] Fully AI generated (explain what all the generated code does in
moderate detail).

This PR replaces the Matrix custom HTML sanitizer with a DOMPurify-based
implementation that matches the Matrix v1.18 allowlist instead of the
broader legacy rules. The sanitizer now validates tag-specific
attributes, rejects incoming `style`, limits links to
`https/http/ftp/mailto/magnet`, limits images to `mxc://`, strips
`mx-reply`, and keeps the existing nesting guard. Reply previews now
sanitize `formatted_body` before any reply trimming or parsing. The
React HTML parser now turns `data-mx-color` and `data-mx-bg-color` into
React styles at render time and ignores raw incoming `style` attributes
even if unsanitized HTML somehow reaches the parser. The plain-text HTML
interpolation paths in forwarding, the room composer, and the message
editor now use text escaping instead of the HTML allowlist sanitizer.
The new tests lock down the sanitizer contract, the reply-preview
regression, parser color translation, and parser-side style stripping.
2026-03-30 02:50:05 +00:00
hazre 153a4903d3 fix: default dark code block theme to dracula 2026-03-30 00:03:57 +02:00
hazre fb1732ce82 fix: harden MXC image rendering and simplify HTML paths 2026-03-29 23:42:17 +02:00
7w1 fcff9ef378 Fix PMP ID handling and generation (#583)
### Description

This pull request addresses issues with ID handling and generation for
Personas by standardizing the way short IDs are generated and used
throughout the codebase. It replaces the use of `crypto.randomUUID()`
with a new utility function, `generateShortId`, ensuring IDs are shorter
and more consistent. Additionally, it improves command parsing for
Persona-related commands.

#### ID Generation Improvements

- Introduced a new utility function `generateShortId` in
`src/app/utils/shortIdGen.ts` to generate short, consistent IDs by
truncating UUIDs.
- Replaced all instances of `crypto.randomUUID()` with
`generateShortId(5)` when creating new Persona or member IDs in
`PerMessageProfileOverview.tsx` and `PKitCommandMessageHandler.ts`,
ensuring all IDs are now short and uniform.

#### Command Parsing Enhancements

- Updated regular expressions in `useCommands.ts` to use `\S+` instead
of `\w+` for Persona IDs, allowing IDs with a broader set of characters
and improving robustness of command parsing.

Fixes #582

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

No AI was used for this PR
2026-03-29 03:05:30 +00:00
Rose 99630e0579 Update CodeQL action versions in codeql.yml
Updated CodeQL action versions in the workflow file.
2026-03-29 03:56:56 +02:00
Rye dae8e6ac29 fix(PMP, ID): changed pmp id handling and generation 2026-03-29 03:29:56 +02:00
7w1 a8ddeb6061 Fix Youtube Previewing Crashing by adding shorts support (#578)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description
Added basic shorts support and a fallback to fix it from crashing on
shorts.

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. -->
Athena has cursed me with the wisdom to fix this.
2026-03-28 22:04:25 +00:00
Shea c2de0c5e4e Merge branch 'SableClient:dev' into links-msc4095 2026-03-29 00:01:33 +02:00
hazre 0f7a28bf42 refactor: split code block themes into their own section 2026-03-28 22:36:32 +01:00
Shea Duma f4ddda6048 added general fallback 2026-03-28 22:08:54 +02:00
Shea Duma 8b287644d9 added /shorts/ support to stop sable from crashing 2026-03-28 22:04:54 +02:00
hazre 13bf74da87 feat: add system and manual code block theme modes 2026-03-28 20:45:50 +01:00
hazre a458be5daf chore: clarify Arborium changeset summary 2026-03-28 20:21:46 +01:00
hazre 2d26424cdf chore: add Arborium migration changeset 2026-03-28 20:17:38 +01:00
hazre 26755262cd feat: add reusable settings selectors and code block themes 2026-03-28 20:02:00 +01:00
hazre 768a05f4ea docs: add Matrix HTML sanitization changeset 2026-03-28 17:40:31 +01:00
hazre 149550639c Merge remote-tracking branch 'origin/dev' into hazre/fix/matrix-html-sanitization
# Conflicts:
#	src/app/components/message/Reply.tsx
#	src/app/features/room/RoomInput.tsx
2026-03-28 17:33:33 +01:00
hazre ee1b718737 fix: harden Matrix HTML sanitization 2026-03-28 17:11:25 +01:00
7w1 709a9a918e chore: prepare release 1.13.0 (#518)
> [!IMPORTANT]
> Merging this PR will create a new release.

## Features

* Add ability to click on usernames in member and state events to view
user info ([#536](https://github.com/SableClient/Sable/pull/536) by
@thundertheidiot)
* Add black theme ([#437](https://github.com/SableClient/Sable/pull/437)
by @Elec3137)
* added a limited compatibility with `pk;member` commands
([#550](https://github.com/SableClient/Sable/pull/550) by @dozro)
* Add /location sharing command, and a /sharemylocation command.
([#509](https://github.com/SableClient/Sable/pull/509) by @nushea)
* added option to use shorthands to send a message with a Persona, for
example `✨:test` ([#550](https://github.com/SableClient/Sable/pull/550)
by @dozro)
* Add quick reply keybinds by using <kbd>ctrl</kbd>+<kbd>up</kbd> /
<kbd>ctrl</kbd>+<kbd>down</kbd> you can now cycle through the message
you are replying to with keybinds
([#524](https://github.com/SableClient/Sable/pull/524) by @CodeF53)
* Adds a `/html` command to send HTML messages
([#560](https://github.com/SableClient/Sable/pull/560) by @Vespe-r)
* Add room abbreviations with hover tooltips: moderators define
term/definition pairs in room settings; matching terms are highlighted
in messages. ([#514](https://github.com/SableClient/Sable/pull/514) by
@Just-Insane)
* Add support for timestamps, playlists and youtube music links for the
youtube embeds ([#534](https://github.com/SableClient/Sable/pull/534) by
@thundertheidiot)
* Add settings sync across devices via Matrix account data, with JSON
export/import ([#515](https://github.com/SableClient/Sable/pull/515) by
@Just-Insane)

## Fixes

* Add detailed error messages to forwarding failures.
([#532](https://github.com/SableClient/Sable/pull/532) by @7w1)
* Cap unread badge numbers at `1k+`, and something extra :)
([#484](https://github.com/SableClient/Sable/pull/484) by @hazre)
* Fix scroll-to-bottom after room navigation, timeline pagination
reliability, and URL preview deduplication.
([#529](https://github.com/SableClient/Sable/pull/529) by @Just-Insane)
* Fixes the most recent pmp message in encrypted rooms not consistently
rendering the pmp and not grouping with previous pmps.
([#526](https://github.com/SableClient/Sable/pull/526) by @7w1)
* fixed sending sticker and attachments while having a persona selected
([#525](https://github.com/SableClient/Sable/pull/525) by @dozro)
* Fix push notifications missing sender/room avatar and showing stale
display names when using event_id_only push format.
([#551](https://github.com/SableClient/Sable/pull/551) by @Just-Insane)
* Sanitize formatted reply previews before rendering to prevent unsafe
HTML from being parsed in reply snippets.
([#569](https://github.com/SableClient/Sable/pull/569) by @Just-Insane)
* Fix broken link to Sliding Sync known issues — now points to
SableClient/Sable#39 instead of the old repository.
([#519](https://github.com/SableClient/Sable/pull/519) by @Just-Insane)
* Fix service worker authenticated media requests returning 401 errors
after SW restart or when session data is missing/stale.
([#516](https://github.com/SableClient/Sable/pull/516) by @Just-Insane)
* rephrased the command describtion for `/usepmp` and made `/usepmp
reset` actually reset the room association of the pmp
([#550](https://github.com/SableClient/Sable/pull/550) by @dozro)
* Fix confusing ui with `Client Side Embeds in Encrypted Rooms` setting
([#535](https://github.com/SableClient/Sable/pull/535) by
@thundertheidiot)
* fix forwarding metadata by removing the `null` value
([#540](https://github.com/SableClient/Sable/pull/540) by @dozro)
* fix forwarding issue for users on synapse homeservers, by removing the
relation ([#558](https://github.com/SableClient/Sable/pull/558) by
@dozro)
* fixed the syntax issues regarding `/addpmp` and `usepmp` (note that
the syntax for `/usepmp` has changed)
([#550](https://github.com/SableClient/Sable/pull/550) by @dozro)
* fix the display of jumbo emojis on messages sent with a persona
([#530](https://github.com/SableClient/Sable/pull/530) by @dozro)
* Fix sidebar notification badge positioning so unread and unverified
counts align consistently.
([#484](https://github.com/SableClient/Sable/pull/484) by @hazre)
* Use the browser's native compact number formatting for room and member
counts. ([#484](https://github.com/SableClient/Sable/pull/484) by
@hazre)
* fix(sentry): scrub percent-encoded Matrix IDs and opaque base64url
tokens from Sentry URLs
([#531](https://github.com/SableClient/Sable/pull/531) by @Just-Insane)

## Notes

* new/changed bios will now also be saved in the format MSC4440 expects
([#559](https://github.com/SableClient/Sable/pull/559) by @dozro)
* moved the setting for filtering pronouns by language from experimental
to the appearance setting
([#521](https://github.com/SableClient/Sable/pull/521) by @dozro)
2026-03-28 16:01:42 +00:00
github-actions[bot] 130db3c1a4 chore: prepare release 1.13.0 2026-03-28 15:28:53 +00:00
7w1 14b2e34f33 fix: recover profile and avatar loading (#566)
### Description

Fixes profile and avatar loading regressions introduced around the
MSC4440 bio compatibility work.

This PR addresses two related problems:

- Own profile data could disappear when `useUserProfile` encountered
`gay.fomx.biography` in an unexpected shape or when the field was
missing entirely.
- Avatar components could get stuck in fallback mode after a transient
image load failure, causing the account avatar and other avatars to
disappear until a full reload.

The fix does three things:

- parses `gay.fomx.biography` defensively with optional access instead
of assuming `m.text[0].body` always exists
- retries profile fetches when the cache was previously poisoned into an
`_fetched`-only state after normalization failed
- resets avatar error state when the image `src` changes so transient
media/auth failures can recover on later renders

This was verified against the broken Account settings / account switcher
behavior where avatar, banner, bio, status, and pronouns could appear
missing.

Fixup of #559

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

- [x] Partially AI assisted (GitHub Copilot)

`useUserProfile.ts`: Hardened MSC4440 bio parsing so missing or
malformed `gay.fomx.biography` data does not throw during normalization,
and allowed refetching when the profile cache only contains `_fetched:
true` from a prior failed normalization.

`UserAvatar.tsx` and `RoomAvatar.tsx`: Reset local image error state
when `src` changes so a temporary image load failure does not
permanently lock the component into fallback rendering.
2026-03-28 15:26:37 +00:00
Rose 5433f293c1 FIX dev branch error with loading youtube links that have no params (#570)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description
This is a quick and dirty fix to youtube links not having parameters

**This fixes a branch issue**

#### 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. -->
I have asked God for the solution
2026-03-28 15:26:10 +00:00
Shea Duma e286911a6a removed redundant fallback 2026-03-28 17:24:29 +02:00
7w1 748794cedc fix: scroll-to-bottom regression and timeline pagination fixes (#529)
### Description

Fixes several timeline bugs introduced after the
timeline-reset-on-navigation refactor:

- Scroll-to-bottom no longer gets stuck after navigating to a room
- Timeline pagination no longer uses a stale timeline chain after a
sliding sync reset
- URL preview requests are deduplicated so the same URL only fires one
network request
- Removed a redundant spidering call that was generating an extra
sliding sync request per room visit

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
- [x] My changes generate no new warnings

### AI disclosure:

- [x] Partially AI assisted (GitHub Copilot)

`RoomTimeline.tsx`: Added a `liveTimelineLinked` guard so the initial
scroll doesn't fire with stale data from the previous room, and a
`pendingReadyRef` that defers `setIsReady(true)` when `processedEvents`
is still empty (preventing the room opening at position 0).
`useTimelineSync.ts`: A `useEffect` resets the timeline state on room
change so revisited rooms aren't stuck with `liveTimelineLinked =
false`. Reads `linkedTimelines` fresh after each `await` in pagination
so a sliding sync reset mid-paginate doesn't cause count comparisons on
a detached chain. A `continuing` flag prevents two concurrent pagination
calls from racing on the lock. URL preview dedup uses a module-level
`Map` to share in-flight promises for the same URL. Removed a redundant
`startSpidering` subscription call in the sync setup path.
2026-03-28 10:23:55 -05:00
Evie Gauthier 724b45fd61 fix: remove extra blank line in useUserProfile.ts 2026-03-28 11:09:29 -04:00
Shea Duma 705adf0d6e fix youtube video links missing params in dev branch 2026-03-28 16:59:24 +02:00
Rose e0a666c6ef Add PluralKit style command (limited) handler an proxy recognition (#550)
### Description

Fixes #427
Fixes #425 (you can use shorthands, instead of `/usepmp`)

#### PluralKit Compatibility and Per-Message Profile Enhancements

- Added limited compatibility for PluralKit-style (`pk;member`)
commands, allowing users to interact with PMPs using familiar PK syntax.
- Introduced shorthand syntax for sending messages with a Persona, such
as `✨:test`, and an option to enable/disable this in settings.
- Added a new settings section (`PKCompatSettings`) in the Persona
profile page to toggle PK command compatibility and shorthand proxying.

#### Command Handling Improvements

- Updated `/addpmp` and `/usepmp` command parsing to use regular
expressions, fixing syntax issues and clarifying usage. The `/usepmp`
command now has a new syntax and properly resets room associations when
requested.
- Added a new `/pmpproxy` command to associate a proxy with a profile,
and integrated feedback for unsupported flags in `/usepmp`.

#### Data Model and Utility Updates

- Expanded the per-message profile data model to support compatibility
versions and proxy associations, including new type definitions and
parsing utilities.

These changes collectively improve the user experience for those using
per-message profiles and PluralKit-style workflows, and provide more
flexible and robust command handling.

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

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

no AI was used in the creation of this PR
2026-03-28 14:56:56 +00:00
Rose a912387e2d Fix unsanitized HTML in reply renderer (#569)
### Description

Fix reply preview rendering so formatted reply content is sanitized
before React HTML parsing.

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:

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

AI-assisted parts:
- Extracted `sanitizeReplyFormattedPreview()` in `Reply.tsx` so
formatted reply previews are always sanitized before parsing.
- Added regression tests in `ThreadIndicator.test.tsx` for quote
stripping and sanitizer behavior.
- Adjusted the test payload and formatting to satisfy lint and prettier
checks.
2026-03-28 14:52:47 +00:00
Evie Gauthier 43891db626 docs: add changeset for reply sanitizer fix 2026-03-28 10:49:17 -04:00
Evie Gauthier 0816b0aa65 test: fix reply sanitizer regression test lint issues 2026-03-28 10:39:36 -04:00
Evie Gauthier 04fd0fd76e Fix reply HTML sanitization and add regression test 2026-03-28 10:29:35 -04:00
Rose cd4b4c7651 Add CodeQL analysis workflow configuration
This workflow file sets up CodeQL analysis for the repository, specifying languages and build modes for scanning.
2026-03-28 13:27:27 +01:00
Rose 3ffbbb53fe Delete .changeset/fix-profile-avatar-loading.md 2026-03-28 12:40:09 +01:00
Evie GauthierandCopilot 2a30a22c24 Update src/app/hooks/useUserProfile.ts
Co-authored-by: Copilot <[email protected]>
2026-03-28 01:28:15 -04:00
Evie Gauthier e7fd523759 chore: format profile avatar fix files 2026-03-28 01:25:41 -04:00
Evie Gauthier 7ac1935424 Revert "fix: recover profile and avatar loading"
This reverts commit fe3900a657.
2026-03-28 01:21:45 -04:00
Evie Gauthier 5865c4cc71 chore: add changeset for profile/avatar loading fix 2026-03-28 01:19:57 -04:00
Evie Gauthier 282de15601 fix: recover profile and avatar loading 2026-03-28 01:19:39 -04:00
Evie Gauthier fe3900a657 fix: recover profile and avatar loading 2026-03-28 01:13:31 -04:00
Evie Gauthier 6ccb85f96b fix: resolve PR #529 quality check failures 2026-03-27 23:52:45 -04:00
Evie Gauthier f9c725e0ab Add tests 2026-03-27 23:33:47 -04:00
Evie Gauthier 1114c047d5 fix: resolve Copilot code review comments on PR #529
- Clear initialScrollTimerRef when room changes to prevent stale timer
  from firing in a new room after navigation (RoomTimeline.tsx)
- Scope URL preview cache by MatrixClient to prevent cross-account
  deduplication when multiple clients/sessions exist (UrlPreviewCard.tsx)
- Delete cache entries after promise settles (both success/rejection)
  to prevent unbounded cache growth over long sessions (UrlPreviewCard.tsx)
- Fix pagination token direction check: use appropriate timeline end
  and token direction based on pagination direction (forward/backward)
  instead of always checking first timeline's backward token
  (useTimelineSync.ts)
2026-03-27 23:17:03 -04:00