mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
show "upgrade" message on invalid connection request (#164)
This commit is contained in:
committed by
GitHub
parent
e7f9e5a834
commit
29b683329d
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user