Improve Discord bridge state handling

This commit is contained in:
batuhan içöz
2026-02-02 19:34:57 +01:00
parent 8c02a80f85
commit 30752fa48b
4 changed files with 154 additions and 9 deletions

View File

@@ -97,6 +97,11 @@ func (dl *DiscordGenericLogin) FinalizeCreatingLogin(ctx context.Context, token
Str("user_username", user.Username).
Msg("Logged in to Discord")
// We already opened the gateway session before creating the UserLogin,
// which means the initial READY/CONNECT event was dropped. Send Connected
// here so infra gets login status for new logins.
client.markConnected()
return ul, nil
}