diff --git a/src/Simplex/Chat/View.hs b/src/Simplex/Chat/View.hs index 818f02fd6a..8c4a9d1845 100644 --- a/src/Simplex/Chat/View.hs +++ b/src/Simplex/Chat/View.hs @@ -2683,7 +2683,7 @@ viewChatError isCmd logLevel testView = \case CEInvalidConnReq -> viewInvalidConnReq CESimplexName ni nameErr -> let reason = case nameErr of - SNENoValidLink -> "has no usable connection link" + SNENoValidLink -> "has no valid connection link" SNEUnknownName -> "is not included in the connection link's profile" in ["SimpleX name " <> plain (shortNameInfoStr ni) <> " " <> reason] CEUnsupportedConnReq -> [ "", "Connection link is not supported by the your app version, please ugrade it.", plain updateStr] diff --git a/tests/ChatTests/Names.hs b/tests/ChatTests/Names.hs index b4677f9354..120ef307b8 100644 --- a/tests/ChatTests/Names.hs +++ b/tests/ChatTests/Names.hs @@ -110,7 +110,7 @@ testSetNameNotOwnAddress ps = withSmpServerAndNames $ \reg -> alice ##> "/ad" _ <- getContactLinks alice True alice ##> "/_set_name 1 @alice.simplex" - alice <## "bad chat command: name does not point to your address" + alice <## "SimpleX name @alice.simplex has no valid connection link" testConnectByChannelName :: HasCallStack => TestParams -> IO () testConnectByChannelName ps = withSmpServerAndNames $ \reg ->