| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-03-11 03:40:58 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-03-11 03:40:58 UTC |
| parent | 5309f42f4ac0d244b8541e3c49918cf1500899d3 |
| borogove/Client.hx | +2 | -2 |
diff --git a/borogove/Client.hx b/borogove/Client.hx index 84eb8b0..1825bb7 100644 --- a/borogove/Client.hx +++ b/borogove/Client.hx @@ -674,9 +674,9 @@ class Client extends EventEmitter { startOffline().then(_ -> persistence.getStreamManagement(accountId()) ).then((sm) -> { - stream.on("auth/password-needed", (data) -> { + stream.on("auth/password-needed", (data: { ?mechanisms: Array<{ name: String, canFast: Bool, canOther: Bool }> }) -> { fastMechanism = data.mechanisms?.find((mech) -> mech.canFast)?.name; - if (token == null || (fastMechanism == null && data.mechanimsms != null)) { + if (token == null || (fastMechanism == null && data.mechanisms != null)) { this.trigger("auth/password-needed", { accountId: accountId() }); } else { this.stream.trigger("auth/password", { password: token, mechanism: fastMechanism, fastCount: fastCount });