simplex-chat-nodejs: fix resolveKnown type error in apiConnectPlan (#6871)

This commit is contained in:
sh
2026-04-24 12:58:27 +00:00
committed by GitHub
parent f3547878cc
commit ac0176fa0b
+1 -1
View File
@@ -654,7 +654,7 @@ export class ChatApi {
* Network usage: interactive.
*/
async apiConnectPlan(userId: number, connectionLink: string): Promise<[T.ConnectionPlan, T.CreatedConnLink]> {
const r = await this.sendChatCmd(CC.APIConnectPlan.cmdString({userId, connectionLink}))
const r = await this.sendChatCmd(CC.APIConnectPlan.cmdString({userId, connectionLink, resolveKnown: false}))
if (r.type === "connectionPlan") return [r.connectionPlan, r.connLink]
throw new ChatCommandError("error getting connect plan", r)
}