prepare v1.1.0 (#259)

This commit is contained in:
Efim Poberezkin
2022-02-02 23:50:43 +04:00
committed by GitHub
parent 292c334460
commit 4724669bce
7 changed files with 18 additions and 11 deletions

View File

@@ -365,8 +365,7 @@ processChatCommand user@User {userId, profile} = \case
corrId <- liftIO $ SMP.CorrId <$> randomBytes gVar 8
void . forkIO $
withAgentLock a . withLock l $
atomically . writeTBQueue q
=<< (Just corrId,) <$> (action `catchError` (pure . CRChatError))
(atomically . writeTBQueue q) . (Just corrId,) =<< (action `catchError` (pure . CRChatError))
pure $ CRCmdAccepted corrId
-- use function below to make commands "synchronous"
-- procCmd :: m ChatResponse -> m ChatResponse

View File

@@ -35,7 +35,7 @@ import System.IO (Handle)
import UnliftIO.STM
versionNumber :: String
versionNumber = "1.0.2"
versionNumber = "1.1.0"
versionStr :: String
versionStr = "SimpleX Chat v" <> versionNumber

View File

@@ -117,7 +117,8 @@ responseToView cmd = \case
where
api = (highlight cmd :)
r = (plain cmd :)
-- this function should be `r` for "synchronous" command responses
-- this function should be `r` for "synchronous", `id` for "asynchronous" command responses
-- r' = r
r' = id
viewChatItem :: ChatInfo c -> ChatItem c d -> [StyledString]
@@ -482,6 +483,7 @@ viewChatError = \case
SEDuplicateContactLink -> ["you already have chat address, to show: " <> highlight' "/sa"]
SEUserContactLinkNotFound -> ["no chat address, to create: " <> highlight' "/ad"]
SEContactRequestNotFoundByName c -> ["no contact request from " <> ttyContact c]
SEConnectionNotFound _ -> [] -- TODO mutes delete group error, but also mutes any error from getConnectionEntity
e -> ["chat db error: " <> sShow e]
ChatErrorAgent err -> case err of
SMP SMP.AUTH -> ["error: this connection is deleted"]