Revert "core: include commit information in /v response (#1705)"

This reverts commit 3d4e4e2ef9.
This commit is contained in:
Evgeny Poberezkin
2023-01-08 13:13:13 +00:00
parent 3d4e4e2ef9
commit 4dc2a1b72d
5 changed files with 3 additions and 40 deletions
+1 -5
View File
@@ -111,7 +111,7 @@ responseToView user_ testView liveItems ts = \case
CRFileTransferStatus ftStatus -> viewFileTransferStatus ftStatus
CRUserProfile p -> viewUserProfile p
CRUserProfileNoChange -> ["user profile did not change"]
CRVersionInfo _ info -> [plain versionStr, viewCoreVersionInfo info, plain updateStr]
CRVersionInfo _ -> [plain versionStr, plain updateStr]
CRChatCmdError e -> viewChatError e
CRInvitation cReq -> viewConnReqInvitation cReq
CRSentConfirmation -> ["confirmation sent!"]
@@ -1127,10 +1127,6 @@ instance ToJSON WCallCommand where
toEncoding = J.genericToEncoding . taggedObjectJSON $ dropPrefix "WCCall"
toJSON = J.genericToJSON . taggedObjectJSON $ dropPrefix "WCCall"
viewCoreVersionInfo :: CoreVersionInfo -> StyledString
viewCoreVersionInfo CoreVersionInfo {commitHash, commitMessage, commitDate} =
plain $ "commit " <> commitHash <> ": " <> commitMessage <> " (" <> commitDate <> ")"
viewChatError :: ChatError -> [StyledString]
viewChatError = \case
ChatError err -> case err of