mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-22 13:11:55 +00:00
connect via link with simplex: protocol (#251)
This commit is contained in:
1 parent
711207743b
commit
a68b591029
7 files changed
+93
-3
No files matched your search
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user