show "upgrade" message on invalid connection request (#164)

This commit is contained in:
Evgeny Poberezkin
2021-12-24 11:12:08 +00:00
committed by GitHub
parent e7f9e5a834
commit 29b683329d
2 changed files with 15 additions and 4 deletions
+10
View File
@@ -10,6 +10,7 @@ module Simplex.Chat.View
showInvitation,
showSentConfirmation,
showSentInvitation,
showInvalidConnReq,
showChatError,
showContactDeleted,
showContactGroups,
@@ -113,6 +114,15 @@ showSentConfirmation = printToView ["confirmation sent!"]
showSentInvitation :: ChatReader m => m ()
showSentInvitation = printToView ["connection request sent!"]
showInvalidConnReq :: ChatReader m => m ()
showInvalidConnReq =
printToView
[ "Connection link is invalid!",
"Possibly, it was created in a newer version (to check version: " <> highlight' "/v" <> ")",
"To upgrade (Linux/Mac):",
"curl -o- https://raw.githubusercontent.com/simplex-chat/simplex-chat/master/install.sh | bash"
]
showChatError :: ChatReader m => ChatError -> m ()
showChatError = printToView . chatError