mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-14 21:15:37 +00:00
return version number to mobile (#303)
This commit is contained in:
committed by
GitHub
parent
928dd27043
commit
44d8b549c4
+1
-1
@@ -375,7 +375,7 @@ processChatCommand = \case
|
||||
forM_ contacts $ \ct -> sendDirectContactMessage ct $ XInfo p
|
||||
pure $ CRUserProfileUpdated profile p
|
||||
QuitChat -> liftIO exitSuccess
|
||||
ShowVersion -> pure CRVersionInfo
|
||||
ShowVersion -> pure $ CRVersionInfo versionNumber
|
||||
where
|
||||
withChatLock action = do
|
||||
ChatController {chatLock = l, smpAgent = a} <- ask
|
||||
|
||||
@@ -153,7 +153,7 @@ data ChatResponse
|
||||
| CRFileTransferStatus (FileTransfer, [Integer]) -- TODO refactor this type to FileTransferStatus
|
||||
| CRUserProfile {profile :: Profile}
|
||||
| CRUserProfileNoChange
|
||||
| CRVersionInfo
|
||||
| CRVersionInfo {version :: String}
|
||||
| CRInvitation {connReqInvitation :: ConnReqInvitation}
|
||||
| CRSentConfirmation
|
||||
| CRSentInvitation
|
||||
|
||||
@@ -61,7 +61,7 @@ responseToView cmd testView = \case
|
||||
CRFileTransferStatus ftStatus -> r $ viewFileTransferStatus ftStatus
|
||||
CRUserProfile p -> r $ viewUserProfile p
|
||||
CRUserProfileNoChange -> r ["user profile did not change"]
|
||||
CRVersionInfo -> r [plain versionStr, plain updateStr]
|
||||
CRVersionInfo _ -> r [plain versionStr, plain updateStr]
|
||||
CRChatCmdError e -> r $ viewChatError e
|
||||
CRInvitation cReq -> r' $ viewConnReqInvitation cReq
|
||||
CRSentConfirmation -> r' ["confirmation sent!"]
|
||||
|
||||
Reference in New Issue
Block a user