connect via link with simplex: protocol (#251)

This commit is contained in:
Evgeny Poberezkin
2022-02-01 20:30:33 +00:00
committed by GitHub
parent 711207743b
commit a68b591029
7 changed files with 93 additions and 3 deletions
+2
View File
@@ -17,6 +17,8 @@ final class ChatModel: ObservableObject {
@Published var chatItems: [ChatItem] = []
@Published var terminalItems: [TerminalItem] = []
@Published var userAddress: String?
@Published var appOpenUrl: URL?
@Published var connectViaUrl = false
}
class User: Decodable {
+5
View File
@@ -402,10 +402,15 @@ private func encodeCJSON<T: Encodable>(_ value: T) -> [CChar] {
}
enum ChatError: Decodable {
case error(errorType: ChatErrorType)
case errorStore(storeError: StoreError)
// TODO other error cases
}
enum ChatErrorType: Decodable {
case invalidConnReq
}
enum StoreError: Decodable {
case userContactLinkNotFound
// TODO other error cases