mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-01 19:28:49 +00:00
review round on UX coverage
This commit is contained in:
@@ -489,14 +489,14 @@ class ChatApi:
|
||||
|
||||
async def api_connect_plan(
|
||||
self, user_id: int, connection_link: str
|
||||
) -> tuple[T.ConnectionPlan, T.CreatedConnLink]:
|
||||
) -> tuple[T.ConnectionPlan, T.CreatedConnLink | None]:
|
||||
r = await self.send_chat_cmd(
|
||||
CC.APIConnectPlan_cmd_string(
|
||||
{"userId": user_id, "connectTarget": connection_link, "resolveMode": "unknown"}
|
||||
)
|
||||
)
|
||||
if r["type"] == "connectionPlan":
|
||||
return (r["connectionPlan"], r["connLink"])
|
||||
return (r["connectionPlan"], r.get("connLink"))
|
||||
raise ChatCommandError("error getting connect plan", r)
|
||||
|
||||
async def api_connect(
|
||||
|
||||
Reference in New Issue
Block a user