1
0
Fork 0
mirror of https://github.com/mautrix/discord.git synced 2026-05-14 21:26:54 -04:00
Commit graph

177 commits

Author SHA1 Message Date
Skip R
5f1cbbce5f handlematrix: backport stranger dm prevention from v1 2026-05-13 03:13:02 -07:00
Skip R
4fc08f5fc9 move comment 2026-05-13 01:54:52 -07:00
Skip R
e456929f66 handlediscord: log READY statistics 2026-05-13 01:36:32 -07:00
Skip R
37156a3ba2 connector: log amount of dms synced 2026-05-13 01:36:32 -07:00
Skip R
d1996fbf44 handlediscord: log when we drop messages from unbridged channels
This should make debugging issues in production easier.
2026-05-13 01:36:32 -07:00
Skip R
3fb27b7ed5 handlediscord: always log when receiving supplemental READY 2026-04-28 20:47:21 -07:00
Skip R
44360fedf0 handlediscord: log when lazy_private_channels present 2026-04-28 20:44:09 -07:00
Skip R
d01d6f9edd handlediscord: let DMs create portals 2026-04-28 20:12:19 -07:00
Skip R
ba3df6fec2 login/token: relax token regex 2026-04-28 20:09:50 -07:00
Skip R
6ab8144feb deps: bump discordgo 2026-04-21 19:35:25 -07:00
Skip R
6ea9ef2013 handlediscord: track event handler panics 2026-04-20 20:48:44 -07:00
Skip R
80a46e1fa7 connector: stop using RecipientIDs
This field is undocumented and the gateway doesn't always send it with
good data.
2026-04-20 20:36:09 -07:00
Skip R
ed7fd2b380 login: initial captcha support 2026-04-14 22:53:10 -07:00
Skip R
f179e50b47 login: strip whitespace from sms code 2026-04-14 20:24:16 -07:00
Skip R
c7d16fb9ca login: implement backup code usage 2026-04-14 20:24:03 -07:00
Skip R
5d3715341d auth: sketch first pass at bridgev2 login
still no captcha/backup code, etc.
2026-04-14 00:32:41 -07:00
Skip R
ae2321805c provisioning: backport v1 api 2026-04-12 23:13:19 -07:00
Skip R
ecd1fabd37 handlediscord: actually bridge MESSAGE_ACKs from gateway 2026-04-09 00:04:16 -07:00
Skip R
d58edf7b65 handlediscord: respect friend nicknames 2026-04-08 23:53:31 -07:00
Skip R
af4cf49217 make method receiver names more consistent 2026-04-06 20:45:01 -07:00
Skip R
d138c12bbd connector: handle live relationship updates
discordgo should really be doing this
2026-03-31 01:13:37 -07:00
Skip R
d20451cea8 analytics: make last send attempt relationship type readable 2026-03-31 01:12:48 -07:00
Skip R
e824270244 analytics: send on auth invalidated
also simplify the call sites a bit
2026-03-31 00:18:52 -07:00
Skip R
36d918670a analytics: send for outgoing DMs
as alluded to in the comment, discord's anti-spam measures seem to weigh
DMs heavily
2026-03-31 00:17:40 -07:00
Skip R
6ccb507298 analytics: send when account requires verification 2026-03-31 00:16:51 -07:00
Skip R
1d77d59fd5 analytics: send when getting CAPTCHA challenge from discord
to help us find out which endpoints like to serve challenges
2026-03-31 00:15:49 -07:00
Skip R
c88ffbc9ba directmedia: reimplement in-memory URL cache 2026-03-23 21:58:05 -07:00
Skip R
dd2c2ec0c9 directmedia: sketch implementation 2026-03-20 02:39:40 -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
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
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
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
Skip R
9719c6d1d5 add proper support for remote profiles 2026-03-06 21:54:15 -08:00
Skip R
833085bd95 usercache: add self user to cache 2026-03-06 19:57:57 -08:00