Commit Graph
64 Commits
Author SHA1 Message Date
Cadence Ember 5c9e569a2a Support channel follow messages 2026-03-25 15:29:18 +13:00
Cadence Ember 5b04b5d712 Reformat /plu/ral emulated replies 2026-03-19 13:33:50 +13:00
Cadence Ember ff022e8793 Combine additional embed images into same event 2026-03-13 11:12:44 +13:00
Cadence Ember 5f768fee01 d->m: Don't guess mentions in code blocks 2026-03-12 16:23:22 +13:00
BeaandCadence Ember f5ee130463 Handle expired invites & fix test registration (#73)
This PR addresses a bridge crash discovered while backfilling old channels, alongside a wee QoL fix for the test suite.

* **Expired Events (`d2m`):** Wraps Discord scheduled event/invite link lookups in a try-catch block. If a link is expired (404 or Discord error 10006), the bridge now posts a fallback `m.notice` rather than throwing an error and halting message conversion.
* **Test Suite Setup:** Updates `test.js` to initialize the mock registration object using `getTemplateRegistration()` preventing test runner crashes when running without a local `registration.yaml` file.

Co-authored-by: Cadence Ember <cadence@disroot.org>
Reviewed-on: https://gitdab.com/cadence/out-of-your-element/pulls/73
Co-authored-by: Bea <beanie@theargo.space>
Co-committed-by: Bea <beanie@theargo.space>
2026-03-08 22:11:28 +00:00
Cadence Ember cd8549da38 Fix sticker tests and coverage 2026-03-08 23:32:36 +13:00
Cadence Ember 5002f3046a Convert emojihax to real emoji 2026-02-13 20:27:38 +13:00
Cadence Ember 676cab0dc8 Use smalltext for interaction header 2026-02-13 20:27:25 +13:00
Cadence Ember 0d574c1370 Fix PluralKit replies (properly) 2026-02-12 13:46:50 +13:00
Cadence Ember c4909653aa Fix typecheck 2026-02-11 11:31:27 +13:00
Cadence Ember 0ed3ef68f1 Fix PluralKit replies 2026-02-10 16:35:03 +13:00
Cadence Ember 64369f1054 Fix test 2026-02-09 13:22:45 +13:00
Cadence Ember e66822e94b Make sure written mentions do not match in URLs 2026-02-09 13:22:36 +13:00
Cadence Ember b463e1173b Fallback text for Matrix poll end events
Right now this doesn't seem to show up on any clients because extensible
events is a total mess, but if you did want to code a client that shows
this fallback without bothering to code real support for polls, you are
easily able to do that. Just pretend the poll end event is a
m.room.message and render it like usual.
2026-02-05 01:00:06 +13:00
Cadence Ember c01e347e7b Allow more characters at start of scanned mentions 2026-02-04 12:11:46 +13:00
Cadence Ember b52b2de205 Customise format for Klipy GIFs 2026-02-04 00:45:23 +13:00
Cadence Ember 15aa6ed502 Highlight scanned mentions on Matrix side 2026-02-03 22:41:03 +13:00
Cadence Ember 5aa112f962 Better detect reply rep in reply fallback 2026-02-03 12:35:16 +13:00
Cadence Ember f287806bcd Remove smalltext from non-bots
I don't like it.
2026-02-03 01:23:12 +13:00
Cadence Ember 45285a4835 Only send components if they rendered to something 2026-02-03 01:22:38 +13:00
Cadence Ember e3e38b9f24 Components v2 support 2026-01-30 19:22:13 +13:00
Cadence Ember 02d62c0914 Only show video embeds when they have extra info 2026-01-30 13:58:29 +13:00
Ellie Algase e565342ac8 initial polls support (not exactly working) 2026-01-25 14:33:09 +13:00
Cadence Ember 345b7d6135 Merge attachments with message when possible 2026-01-21 13:51:34 +13:00
Cadence Ember ddc7387fa0 Do not make forwarded messages m.notice 2026-01-21 13:51:34 +13:00
Cadence Ember b5596b2459 Fetch referenced_message for reply fallback 2026-01-21 13:51:34 +13:00
Rory& 5e4b99a552 Remove reply fallback for same-room replies (and update tests accordingly) 2026-01-21 01:59:59 +13:00
Cadence Ember fcd4eb4e51 Refactor cross-room event detection 2026-01-13 22:20:11 +13:00
Cadence Ember 536ab56048 Better text spoilers
Remove spoiler content from plaintext body
Don't bridge embeds if their link is spoilered (deliberately imprecise)
2026-01-13 22:19:54 +13:00
Cadence Ember 505c41a35e More code coverage 2026-01-10 02:28:18 +13:00
Cadence Ember 29d08df094 Fix Discord replies to multipart Matrix messages
The second part of the message is part=1 but the reply database lookup
wanted part=0. To fix this, now it finds the first available part.
2026-01-09 01:48:59 +13:00
Cadence Ember 4bea696a5a setUserPower should account for room version 12 2026-01-07 15:38:09 +13:00
Cadence Ember a6bb248c0a Fix pointer being included for cross-room replies 2025-12-16 00:36:43 +13:00
Cadence Ember 2563a47e78 Properly hide embeds for links in reply previews 2025-12-11 12:46:28 +13:00
Cadence Ember 3fc51cef15 Add upgraded_timestamp to historical_channel_room 2025-12-01 16:38:38 +13:00
Cadence Ember a441c476f8 Support multiple versions of rooms 2025-11-26 15:43:48 +13:00
Cadence Ember 158921d55e Improve emoji uploading experience 2025-11-10 19:08:25 +13:00
ElliuandCadence Ember d95a114377 Fix matrix api joinRoom() for remote rooms (#60)
When using self-service mode and trying to link with a remote matrix
room (room not in the same HS as the bridge user), then we need to add
the "via" HSs to join the room with, or else it fails.

We get it from the "m.space.child" in the "children_state" of the space
hierarchy.

Co-authored-by: Cadence Ember <cadence@disroot.org>
Reviewed-on: https://gitdab.com/cadence/out-of-your-element/pulls/60
Co-authored-by: Elliu <elliu@hashi.re>
Co-committed-by: Elliu <elliu@hashi.re>
2025-11-02 07:50:16 +00:00
Cadence Ember cffd3c9f2e Fix converting discord channel links 2025-10-10 12:26:01 -06:00
Cadence Ember 5b7433de32 Make tests time zone independent 2025-10-07 14:09:50 -05:00
Cadence Ember 5a152b87b8 I guess mentions is an optional property too 2025-09-08 12:37:19 +12:00
Cadence Ember 2614493646 Look harder for username data 2025-08-04 18:10:08 +12:00
Cadence Ember cf39737b5a Move to util 2025-08-04 18:09:39 +12:00
Cadence Ember 7d83f114ba Fix channel links inside lists 2025-06-21 14:45:49 +12:00
Cadence Ember 2c15468c22 Fix m->d then d->m reactions not merging 2025-06-16 22:50:34 +12:00
Cadence Ember edf60bcd2d Remove provider line from Tenor gifs 2025-06-15 21:18:33 +12:00
Cadence Ember ab396bd581 Generate embeds for invites with events 2025-06-08 21:52:28 +12:00
Cadence Ember 2a6284968f Fix replying to a message that had a new emoji
Without this, the emoji consistency assertion would fail because we must
call transformContent to upload the emoji to Matrix.
2025-05-26 00:18:56 +12:00
Cadence Ember 6df8d9a079 Display limited replies to unbridged messages 2025-02-24 01:41:32 +13:00
Cadence Ember 6b919d2a82 Add setting for d->m URL previews 2025-02-18 01:11:26 +13:00