Watch
1
0
Fork
You've already forked mautrix-discord
0
mirror of https://github.com/mautrix/discord.git synced 2026-08-22 12:04:54 -04:00
Commit graph mautrix-discord/pkg
Author SHA1 Message Date
Nick Mills-Barrett
6501891a2b
login: wrap and propagate errors (#242) 2026-08-12 18:23:39 +01:00
Tulir Asokan
7e7ad561ca meowcord/wsapi: send standard Op 1 heartbeat for bot sessions
Sync from 8051e14a44
2026-08-08 12:08:17 +03:00
Skip R
61d3e904b5 meow: sync discordgo 2026-08-03 06:18:41 -07:00
Skip R
005afd448c auth/machine: log converted errors 2026-08-02 19:43:57 -07:00
Tulir Asokan
7727bdfcc5 dependencies: update mautrix-go 2026-07-20 15:18:11 +03:00
Skip R
04b40a6cc5 meow: lint 2026-07-17 04:07:31 -07:00
Skip R
4721fca436 doc: vitals 2026-07-16 16:39:01 -07:00
Skip R
b12444c197 errorcodes: fix comment 2026-07-16 16:38:55 -07:00
Skip R
295957290f connector: don't explode if Session.User is nil after Open 2026-07-15 20:46:16 -07:00
Skip R
948b6d9321 connector/chatinfo,userinfo: permit when "logged out"
So we can create portals (for e.g. the official system user) if
necessary.
2026-07-15 20:27:09 -07:00
Skip R
e52c19533e vitals: lock state reads 2026-07-15 20:21:54 -07:00
Skip R
5cda45c29f connector/config: correct doc 2026-07-15 18:28:56 -07:00
Skip R
3de7b918ac connector: defer full sync until we have good vitals 2026-07-15 18:28:32 -07:00
Skip R
17ce47e772 vitals: don't litter context sent to downstream work 2026-07-15 17:28:31 -07:00
Skip R
75a27726bd handlediscord: transition bridge state ASAP upon urgent system message
Don't wait for the safety hub fetch to finish.
2026-07-15 16:37:53 -07:00
Skip R
317876a0b6 refine comments 2026-07-15 16:37:44 -07:00
Skip R
bf19aafe6f handlediscord: spawn goroutine for updating safety hub/vitals
This code is in the synchronous update path, we need to avoid blocking
on HTTP requests here.
2026-07-15 16:29:03 -07:00
Skip R
86da1edd6c auth/error: don't consider "compromised account" error to be input error 2026-07-15 16:28:28 -07:00
Skip R
3fc2e39b88 auth/machine: explicitly check for correct answer field 2026-07-15 16:26:40 -07:00
Skip R
ae24c77e02 auth/machine: clear interrupt req if IP auth token is invalid
Otherwise, the interrupt req takes priority (it always does this by
design) and the user doesn't actually get to log in from scratch again,
they just get stuck in a loop forever.
2026-07-15 16:09:11 -07:00
Skip R
0c61a6db4c handlediscord: only set UserFlagHasUnreadUrgentMessages when urgent
Setting this flag incorrectly can wedge the entire bridge, especially if
the user doesn't actually have any unread urgent messages (so the
official client has nothing to clear...)
2026-07-15 16:04:14 -07:00
Skip R
e2d47d7d32 meow: import beeper fork
[skip ci] for now, will fix lints and checks in a later pass.
2026-07-14 11:36:09 -07:00
Skip R
8bcc39ec3b bump to discordgo e194251224ed and correct all flag logic 2026-07-14 08:36:16 -07:00
Skip R
3f37f0cb58 connector/vitals: remove unnecessary cast 2026-07-14 08:25:11 -07:00
Skip R
c2cd95e7ba lint 2026-07-13 23:43:00 -07:00
Skip R
5abc733383 connector: comments 2026-07-13 23:41:46 -07:00
Skip R
d052403358 report account vital signals as bridge state, preventing usage when bad 2026-07-13 23:25:49 -07:00
Skip R
6faac571bb connector: consider news channels to be bridgeable 2026-07-08 09:11:21 -07:00
Skip R
51adda3a87 chatinfo: add readable string case for news channels 2026-07-08 09:11:10 -07:00
Skip R
1ca066c15b auth/error: split field summary logic into method 2026-07-07 20:54:36 -07:00
Skip R
a8ecf2e4b7 connector/login: make errors visible to the user 2026-07-07 20:54:04 -07:00
Skip R
7061d2109f auth/error: add ACCOUNT_COMPROMISED_RESET_PASSWORD error code 2026-07-07 20:43:04 -07:00
Skip R
2541cc2f56 auth/error: add AnyFieldHasError utility 2026-07-07 20:42:43 -07:00
Skip R
aab23b50bf auth/error: check all field errors for the code 2026-07-07 20:25:46 -07:00
Skip R
ab65bb659a auth/machine: test IP verification via SMS 2026-07-07 20:16:58 -07:00
Skip R
c88b84dc84 auth/machine: handle expired IP verification tokens 2026-07-07 20:16:58 -07:00
Skip R
a9fab25784 auth/error: consider InvalidVerificationCode to be a user input error 2026-07-07 20:16:58 -07:00
Skip R
b5dad96026 auth/error: add more codes 2026-07-07 20:16:58 -07:00
Skip R
e491ff6e0c connector/login: wire up phone verification 2026-07-07 20:16:58 -07:00
Skip R
740ca9e29d auth/machine: support IP verification via code sent to phone via SMS 2026-07-07 20:16:58 -07:00
Skip R
f2565dda83 auth: widen criteria for user input error detection
This is to make detection of user input errors more reliable, especially
with phone verification support coming up soon.
2026-07-07 19:50:16 -07:00
Skip R
869e9f2519 auth/machine: support one level of re-entrancy & sequencing more ops 2026-07-07 18:58:18 -07:00
Skip R
3f7fd707df auth: remove unused imports 2026-07-07 18:55:09 -07:00
Skip R
fba984b489 auth: fix static checks 2026-07-07 17:25:52 -07:00
Skip R
02982000be auth/machine: don't expose POST helper 2026-07-07 17:12:35 -07:00
Skip R
3921bb1f1b auth/machine: add captcha tests 2026-07-07 17:12:35 -07:00
Skip R
892aede394 auth/machine: turn into a resumable state machine 2026-07-07 17:12:35 -07:00
Skip R
0d779c477c provisioning: log errors if we fail to sync guild 2026-07-02 13:31:35 -07:00
Skip R
bca69922ba handlediscord: bridge incrementally created guild channels 2026-07-02 13:05:34 -07:00
Skip R
3762fb09f6 doc: elucidate utility of ensurePortal 2026-07-02 13:03:23 -07:00