mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
SMP AUTH error processing and descriptions (#544)
* SMP AUTH error descriptions * change text * android error description * Update apps/android/app/src/main/res/values/strings.xml Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com> * Update apps/android/app/src/main/res/values-ru/strings.xml Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com> * fix translations * Apply suggestions from code review Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com> Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
This commit is contained in:
@@ -492,6 +492,12 @@ func apiConnect(connReq: String) async throws -> Bool {
|
||||
message: "Please check your network connection and try again."
|
||||
)
|
||||
return false
|
||||
case .chatCmdError(.errorAgent(.SMP(.AUTH))):
|
||||
am.showAlertMsg(
|
||||
title: "Connection error (AUTH)",
|
||||
message: "Unless your contact deleted the connection or this link was already used, it might be a bug - please report it.\nTo connect, please ask your contact to create another connection link and check that you have a stable network connection."
|
||||
)
|
||||
return false
|
||||
default: throw r
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user