openclaw/extensions
zerone0x 3feb7fc3a3
fix(matrix): detect mentions in formatted_body matrix.to links (#16941)
* fix(matrix): detect mentions in formatted_body matrix.to links

Many Matrix clients (including Element) send mentions using HTML links
in formatted_body instead of or in addition to the m.mentions field:

```json
{
  "formatted_body": "<a href=\"https://matrix.to/#/@bot:matrix.org\">Bot</a>: hello",
  "m.mentions": null
}
```

This change adds detection for matrix.to links in formatted_body,
supporting both plain and URL-encoded user IDs.

Changes:
- Add checkFormattedBodyMention() helper function
- Check formatted_body in resolveMentions()
- Add comprehensive test coverage

Fixes #6982

* Update extensions/matrix/src/matrix/monitor/mentions.ts

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

---------

Co-authored-by: zerone0x <zerone0x@users.noreply.github.com>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2026-02-19 03:40:21 -08:00
..
bluebubbles test(bluebubbles): merge typing start stop method checks 2026-02-19 10:09:34 +00:00
copilot-proxy chore: bump version to 2026.2.18 unreleased 2026-02-18 04:40:06 +01:00
device-pair Security: disable plugin runtime command execution primitive (#20828) 2026-02-19 10:17:29 +00:00
diagnostics-otel fix(otel): complete diagnostics-otel OpenTelemetry v2 API migration (#12897) 2026-02-19 02:36:47 -08:00
discord chore: bump version to 2026.2.18 unreleased 2026-02-18 04:40:06 +01:00
feishu fix(feishu): isolate temp download writes in mkdtemp dirs 2026-02-19 11:05:04 +01:00
google-antigravity-auth chore: bump version to 2026.2.18 unreleased 2026-02-18 04:40:06 +01:00
google-gemini-cli-auth chore: bump version to 2026.2.18 unreleased 2026-02-18 04:40:06 +01:00
googlechat chore: bump version to 2026.2.18 unreleased 2026-02-18 04:40:06 +01:00
imessage chore: bump version to 2026.2.18 unreleased 2026-02-18 04:40:06 +01:00
irc chore: bump version to 2026.2.18 unreleased 2026-02-18 04:40:06 +01:00
line chore: bump version to 2026.2.18 unreleased 2026-02-18 04:40:06 +01:00
llm-task chore: bump version to 2026.2.18 unreleased 2026-02-18 04:40:06 +01:00
lobster lobster: parse windows cmd shim paths with rooted tokens (#20833) 2026-02-19 02:34:08 -08:00
matrix fix(matrix): detect mentions in formatted_body matrix.to links (#16941) 2026-02-19 03:40:21 -08:00
mattermost refactor(mattermost): dedupe reaction flow and test fixtures 2026-02-18 16:08:38 +00:00
memory-core chore: bump version to 2026.2.18 unreleased 2026-02-18 04:40:06 +01:00
memory-lancedb chore: bump version to 2026.2.18 unreleased 2026-02-18 04:40:06 +01:00
minimax-portal-auth chore: bump version to 2026.2.18 unreleased 2026-02-18 04:40:06 +01:00
msteams chore: bump version to 2026.2.18 unreleased 2026-02-18 04:40:06 +01:00
nextcloud-talk chore: bump version to 2026.2.18 unreleased 2026-02-18 04:40:06 +01:00
nostr fix: block ISATAP SSRF bypass via shared host/ip guard 2026-02-19 09:59:47 +01:00
open-prose chore: bump version to 2026.2.18 unreleased 2026-02-18 04:40:06 +01:00
phone-control style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
qwen-portal-auth TypeScript: add extensions to tsconfig and fix type errors (#12781) 2026-02-09 10:05:38 -08:00
shared refactor(extensions): dedupe connector helper usage 2026-02-16 14:59:30 +00:00
signal chore: bump version to 2026.2.18 unreleased 2026-02-18 04:40:06 +01:00
slack chore: bump version to 2026.2.18 unreleased 2026-02-18 04:40:06 +01:00
talk-voice Gateway/Plugins: device pairing + phone control plugins (#11755) 2026-02-08 18:07:13 +01:00
telegram chore: bump version to 2026.2.18 unreleased 2026-02-18 04:40:06 +01:00
thread-ownership test(extensions): cast fetch mocks to satisfy tsgo 2026-02-16 21:25:35 -05:00
tlon fix: block ISATAP SSRF bypass via shared host/ip guard 2026-02-19 09:59:47 +01:00
twitch perf(test): dedupe telegram allowlist and speed twitch probe 2026-02-18 04:16:36 +00:00
voice-call test(voice-call): merge provider credential source cases 2026-02-19 09:55:43 +00:00
whatsapp chore: bump version to 2026.2.18 unreleased 2026-02-18 04:40:06 +01:00
zalo chore: bump version to 2026.2.18 unreleased 2026-02-18 04:40:06 +01:00
zalouser chore: bump version to 2026.2.18 unreleased 2026-02-18 04:40:06 +01:00