Commit graph

78 commits

Author SHA1 Message Date
Bea
116aa1aa2f
feat: make sims leave rooms when Discord user leaves guild
Listen for GUILD_MEMBER_REMOVE events to remove sim users from
bridged Matrix rooms when their corresponding Discord user leaves
(or is kicked/banned from) the guild. Also removes PluralKit proxy
sims owned by the departing user.

Includes a backfill check on GUILD_CREATE to clean up sims for
users who left while the bridge was offline.

Closes #58
2026-03-05 20:22:28 +00:00
Bea
6553946b88
test: fix null registration object and validation errors during setup
Running the test suite without a local `registration.yaml` previously
caused a TypeError because the `reg` export defaulted to null. This
injects a base template using `getTemplateRegistration` before applying
test-specific overrides.
2026-03-02 02:39:23 +00:00
d1b0fa48cf Add tests for emoji sheet; style and nits 2026-02-11 02:42:10 +13:00
15aa6ed502 Highlight scanned mentions on Matrix side 2026-02-03 22:41:03 +13:00
e3e38b9f24 Components v2 support 2026-01-30 19:22:13 +13:00
756e8e27ad Make registration more consistent 2026-01-21 01:59:54 +13:00
505c41a35e More code coverage 2026-01-10 02:28:18 +13:00
045fdfdf27 General code coverage 2026-01-09 03:49:32 +13:00
4bea696a5a setUserPower should account for room version 12 2026-01-07 15:38:09 +13:00
d0f7d79d78 Fix duplicated data appearing on Matrix 2025-11-18 14:48:59 +13:00
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: cadence/out-of-your-element#60
Co-authored-by: Elliu <elliu@hashi.re>
Co-committed-by: Elliu <elliu@hashi.re>
2025-11-02 07:50:16 +00:00
5b7433de32 Make tests time zone independent 2025-10-07 14:09:50 -05:00
bb711c26ac API endpoint for message info 2025-05-12 14:30:49 +12:00
dd63ac7d44 New error trace stringifier 2025-03-12 16:01:36 +13:00
a8670323a0 m->d: fix image captions spec, fix upload issues 2025-02-28 00:39:03 +13:00
d0ac5b58a7 Let anybody run tests 2025-02-16 09:37:21 +13:00
984d4362a5 Remove node-fetch 2025-02-11 12:51:58 +13:00
b2078620be Code coverage for matrix log in & guild settings 2025-02-08 16:05:35 +13:00
a90d3b9055 Code coverage for link/unlink endpoints 2025-02-07 16:56:10 +13:00
a29d019d17 Make read-only Discord channels read-only on Matrix 2025-02-05 16:57:45 +13:00
f7e2c89e65 Test setup for new web pages 2025-02-05 14:57:05 +13:00
f42eb6495f New unicode emoji processor 2025-01-17 18:05:34 +13:00
06b6a63ee3 Sync pins back from Matrix to Discord 2025-01-07 12:24:03 +13:00
4c62124cee Improve invite QR generation 2025-01-06 21:53:48 +13:00
0fe02dce22 Fix web page exploding for unlinked guilds
Now it should at least show something, though features
like invite won't work correctly. More work needed.
2024-12-28 20:01:27 +13:00
c599dff590 Tests and coverage for web 2024-12-24 01:06:19 +13:00
6f7ed829b8 Create and populate guild_id column 2024-10-05 02:23:58 +13:00
9f9d1f615e Test coverage for all interactions 2024-09-30 23:35:09 +13:00
f77602afa6 Add tests for privacy interaction 2024-09-30 16:26:12 +13:00
33915a595d Add tests for reactions interaction 2024-09-30 01:42:12 +13:00
61803c3838 Add tests for matrix info interaction 2024-09-30 01:19:03 +13:00
bad8c5b8c2 Test invite interaction & code coverage 2024-09-30 00:51:55 +13:00
50bd9fd9d7 Remove colorette dependency transitively 2024-09-16 00:54:31 +12:00
15472b4a46 Move test files out of matrix CDN
matrix.org LOVES her! learn this one simple trick
2024-09-15 22:56:55 +12:00
cc7831a313 Remove token from config file 2024-09-13 23:47:11 +12:00
915c34646a Fix references from moving all those files 2024-09-12 17:16:59 +12:00
decc32f7e6 Change getPublicUrlForMxc function for authmedia 2024-09-12 16:59:48 +12:00
37f3a59d8e Interactive initial setup 2024-09-05 15:36:43 +12:00
5d91f999f2 Make power migration testable 2024-08-28 02:53:27 +12:00
b8793dae0f Sync new power system to newly created rooms 2024-08-26 01:42:56 +12:00
24a3b9b0f4 Refactor kstate resource uploading 2024-06-06 12:13:06 +12:00
47ac49a855 Rearrange code (self-review) 2024-03-04 17:02:38 +13:00
c5d6c5e4c7 Rearrange testing emoji sheet images 2024-03-04 13:19:50 +13:00
e236a25da2 Download images data aot for testing 2024-02-20 22:23:08 +13:00
e0d96cde19 d->m: Better text for links to unbridged channels 2024-02-14 11:57:15 +13:00
0f25e73d67 Merge branch 'hotfix-v1.5.1' 2024-02-07 14:48:49 +13:00
c7fb6fd52e Improve test coverage 2024-02-02 15:55:02 +13:00
6c3164edd6 m->d: Emoji sprite sheet supports APNG 2024-02-01 16:38:17 +13:00
67dc31f747 Fix tests that hard-coded cadence.moe 2024-01-20 18:23:48 +13:00
64beb6c996 Code coverage for lottie 2024-01-18 17:03:17 +13:00