1
0
Fork 0
mirror of https://github.com/mautrix/discord.git synced 2026-07-06 22:33:18 -04:00
Commit graph

821 commits

Author SHA1 Message Date
Skip R
26546297bb auth: implement MFA for TOTP, SMS, and backup codes
* create ChallengeHandler interface that clients must implement
* support asking discord to send the user's phone an SMS code
2026-03-27 21:07:59 -07:00
Skip R
04fbf2870b auth: move X-Debug-Options to Personality 2026-03-26 22:21:36 -07:00
Skip R
356b66224e auth: move header constants to their respective files 2026-03-26 22:16:28 -07:00
Skip R
99b25c58f9 auth: add filter to log headers 2026-03-26 22:08:20 -07:00
Skip R
2df7bf7886 auth: comment 2026-03-26 22:08:05 -07:00
Skip R
5dbbe625c7 authtester: support hCaptcha 2026-03-26 21:55:18 -07:00
Skip R
9dc717ff45 auth: add authtester cli program 2026-03-26 21:17:15 -07:00
Skip R
9ac70fd1bd auth: simplify nil slice check 2026-03-26 21:17:15 -07:00
Skip R
754159ed81 auth: add some focused tests 2026-03-26 21:17:15 -07:00
Skip R
65478d4424 auth: set outgoing Content-Type 2026-03-26 21:17:15 -07:00
Skip R
bb787717ee auth: actually log fingerprint if filter permits it 2026-03-26 21:17:15 -07:00
Skip R
8a98bd2b25 auth: fix log message 2026-03-26 21:17:15 -07:00
Skip R
6f148b0bbf auth: actually send x-debug-options 2026-03-26 21:17:15 -07:00
Skip R
a58e88cf93 auth/personality: fix marshal infinite recursion 2026-03-26 21:17:14 -07:00
Skip R
a627d2d510 auth/sensitive: impl unmarshaler 2026-03-26 21:02:43 -07:00
Skip R
d8f3ed3e36 auth: return login response 2026-03-26 20:51:29 -07:00
Skip R
289f92660f auth: add API errors 2026-03-26 20:51:19 -07:00
Skip R
654e3fd898 auth: remove channel 2026-03-26 20:19:24 -07:00
Skip R
82b1645e00 auth: add initial sketch 2026-03-26 20:18:16 -07:00
Skip R
c88ffbc9ba directmedia: reimplement in-memory URL cache 2026-03-23 21:58:05 -07:00
Nick Mills-Barrett
d40b1fc68e
Fix legacy migration comments 2026-03-20 15:11:35 +00:00
Skip R
dd2c2ec0c9 directmedia: sketch implementation 2026-03-20 02:39:40 -07:00
Skip R
744ba4190b msgconv/from-discord: improve look of backfilled user joins 2026-03-18 23:59:25 -07:00
Skip R
8270a9462d handlediscord: bridge live user joins as membership events 2026-03-18 23:58:50 -07:00
Skip R
134c5ed446 capabilities: more explicitly advertise support for all file types 2026-03-18 23:54:55 -07:00
Skip R
b71744a287 chatinfo: support configurable channel name template 2026-03-18 22:43:25 -07:00
Skip R
672f4b8c23 handlediscord: make sure all parent spaces exist before their children
Using `QueueRemoteEvent` to blindly fire off the resyncing of spaces as
well as their child rooms effectively races, resulting in the child
rooms lacking a `network` in their `m.bridge` state.

To fix this, synchronously ensure that the spaces exist before bridging
their children.

This patch also makes it so that empty categories (categories that are
literally empty as well as categories exclusively consisting of channels
that can't be viewed by the user) are no longer bridged.
2026-03-18 22:38:06 -07:00
Skip R
c1b90ef84e downgrade log level of "Computed visibility of guild channel" logs
These are really noisy.
2026-03-18 22:19:50 -07:00
Skip R
f041f78c09 msgconv/from-matrix: support voice messages 2026-03-17 10:20:31 -07:00
Skip R
f796e4cef6 msgconv/from-discord: tweak incoming call message 2026-03-12 19:26:58 -07:00
Skip R
961a89beba msgconv/formatter: escape role and channel names 2026-03-12 18:59:59 -07:00
Skip R
a2c65ee47c msgconv/formatter: fix inbound mention handling
* Check for user logins as well as fetching a ghost. This fixes
  mentioning other Matrix users (when split portals are off), or
  yourself.
* Escape display names.
* Gracefully fail when failing to locate any useful information.
2026-03-12 18:56:54 -07:00
Skip R
1dce5fa9ff msgconv/from-matrix: don't send allowed_mentions for now 2026-03-12 18:18:31 -07:00
Skip R
2b3b058750 msgconv/from-matrix: convert user pills 2026-03-12 18:17:18 -07:00
Skip R
cb9bf5b04b handlediscord: sync group dm membership changes 2026-03-11 19:48:14 -07:00
Skip R
7363538bae sync private channel deletions that occur while the bridge is offline 2026-03-11 19:13:51 -07:00
Skip R
3ae8e8d585 router: log when creating an uncertain route 2026-03-11 19:13:07 -07:00
Skip R
1534b2b984 handlediscord: handle CHANNEL_DELETE 2026-03-11 19:11:51 -07:00
Skip R
6959888bbd msgconv: change animated sticker mime type
This matches with what Beeper Desktop expects.
2026-03-11 17:33:02 -07:00
Skip R
03fb7bc83e handlediscord: sync gateway-created dm channels 2026-03-11 11:16:10 -07:00
Skip R
02b35812ab userinfo: make sure we're logged in 2026-03-10 23:12:10 -07:00
Skip R
1c8bb3531d dependencies: bump discordgo 2026-03-10 23:07:00 -07:00
Skip R
4f2dc2bf30 provisioning: check for logged in state 2026-03-10 23:01:48 -07:00
Skip R
edcad997ac client: don't set a up session if we lack a token entirely 2026-03-10 23:01:24 -07:00
Skip R
cd1f9ddd85 connector: check for nil session before disconnecting 2026-03-10 22:59:28 -07:00
Skip R
51473cf210 connector: check if we're logged out much more 2026-03-10 22:58:40 -07:00
Skip R
2e7e39a91c properly handle our credentials becoming invalidated
Further support cancellation (via concurrent Disconnect call) while
we're "sleeping" in connectRetrying. This is sorta half baked because we
don't handle cancellation post-Open, which should really be added so we
can avoid the sync.
2026-03-10 22:08:35 -07:00
Skip R
261d041ebb client: refuse to connect if token is empty
This is in preparation of us intentionally emptying the token if our
credentials become invalid.
2026-03-10 22:05:52 -07:00
Skip R
a06b09f201 handlediscord: add error constants 2026-03-10 22:04:07 -07:00
Skip R
2cd22e0100 properly handle 40002 errors 2026-03-10 21:04:23 -07:00