From db779eff460b0e39ca51a73507994bd43772364c Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Thu, 17 Sep 2026 13:35:01 +0200 Subject: [PATCH] no-valid-link fix --- src/Simplex/Chat/Controller.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Simplex/Chat/Controller.hs b/src/Simplex/Chat/Controller.hs index d31ccd7380..6b25452aba 100644 --- a/src/Simplex/Chat/Controller.hs +++ b/src/Simplex/Chat/Controller.hs @@ -1153,7 +1153,7 @@ data ConnectionPlan = CPInvitationLink {invitationLinkPlan :: InvitationLinkPlan} | CPContactAddress {contactAddressPlan :: ContactAddressPlan, nameRegistration_ :: Maybe NameRegistration} -- nameRegistration_ is set when the target was a name | CPGroupLink {groupLinkPlan :: GroupLinkPlan, nameRegistration_ :: Maybe NameRegistration} - | CPSimplexName {nameRegistration :: NameRegistration} -- the name is not registered or expired, and no local chat has it + | CPSimplexName {nameRegistration :: NameRegistration} -- the name is not registered, expired or has no usable link, and no local chat has it | CPError {chatError :: ChatError} deriving (Show) @@ -1475,7 +1475,7 @@ data ChatError | ChatErrorRemoteHost {rhKey :: RHKey, remoteHostError :: RemoteHostError} deriving (Show, Exception) --- why a resolved SimpleX name could not be used (the name itself resolved; a name that is not registered or expired is in the plan) +-- why a resolved SimpleX name could not be used (the name itself resolved; in a connection plan, a name with nothing to connect is CPSimplexName) data SimplexDomainError = SDENoValidLink -- the name's record has no usable contact/channel link | SDEUnknownDomain -- the resolved link's profile has no name, or a different name