From 7c70577822831d6b995ca9ba4c66f4cdc1db0758 Mon Sep 17 00:00:00 2001 From: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com> Date: Tue, 12 Sep 2023 18:29:14 +0400 Subject: [PATCH] ios, android: add new error types (#3050) --- apps/ios/SimpleXChat/APITypes.swift | 2 ++ .../commonMain/kotlin/chat/simplex/common/model/SimpleXAPI.kt | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/apps/ios/SimpleXChat/APITypes.swift b/apps/ios/SimpleXChat/APITypes.swift index ad641810c..635534fea 100644 --- a/apps/ios/SimpleXChat/APITypes.swift +++ b/apps/ios/SimpleXChat/APITypes.swift @@ -1468,6 +1468,7 @@ public enum StoreError: Decodable { case userNotFoundByContactRequestId(contactRequestId: Int64) case contactNotFound(contactId: Int64) case contactNotFoundByName(contactName: ContactName) + case contactNotFoundByMemberId(groupMemberId: Int64) case contactNotReady(contactName: ContactName) case duplicateContactLink case userContactLinkNotFound @@ -1495,6 +1496,7 @@ public enum StoreError: Decodable { case rcvFileNotFoundXFTP(agentRcvFileId: String) case connectionNotFound(agentConnId: String) case connectionNotFoundById(connId: Int64) + case connectionNotFoundByMemberId(groupMemberId: Int64) case pendingConnectionNotFound(connId: Int64) case introNotFound case uniqueID diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/model/SimpleXAPI.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/model/SimpleXAPI.kt index 0a178ca2f..3e2c79185 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/model/SimpleXAPI.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/model/SimpleXAPI.kt @@ -3911,6 +3911,7 @@ sealed class StoreError { is UserNotFoundByContactRequestId -> "userNotFoundByContactRequestId" is ContactNotFound -> "contactNotFound" is ContactNotFoundByName -> "contactNotFoundByName" + is ContactNotFoundByMemberId -> "contactNotFoundByMemberId" is ContactNotReady -> "contactNotReady" is DuplicateContactLink -> "duplicateContactLink" is UserContactLinkNotFound -> "userContactLinkNotFound" @@ -3938,6 +3939,7 @@ sealed class StoreError { is RcvFileNotFoundXFTP -> "rcvFileNotFoundXFTP" is ConnectionNotFound -> "connectionNotFound" is ConnectionNotFoundById -> "connectionNotFoundById" + is ConnectionNotFoundByMemberId -> "connectionNotFoundByMemberId" is PendingConnectionNotFound -> "pendingConnectionNotFound" is IntroNotFound -> "introNotFound" is UniqueID -> "uniqueID" @@ -3966,6 +3968,7 @@ sealed class StoreError { @Serializable @SerialName("userNotFoundByContactRequestId") class UserNotFoundByContactRequestId(val contactRequestId: Long): StoreError() @Serializable @SerialName("contactNotFound") class ContactNotFound(val contactId: Long): StoreError() @Serializable @SerialName("contactNotFoundByName") class ContactNotFoundByName(val contactName: String): StoreError() + @Serializable @SerialName("contactNotFoundByMemberId") class ContactNotFoundByMemberId(val groupMemberId: Long): StoreError() @Serializable @SerialName("contactNotReady") class ContactNotReady(val contactName: String): StoreError() @Serializable @SerialName("duplicateContactLink") object DuplicateContactLink: StoreError() @Serializable @SerialName("userContactLinkNotFound") object UserContactLinkNotFound: StoreError() @@ -3993,6 +3996,7 @@ sealed class StoreError { @Serializable @SerialName("rcvFileNotFoundXFTP") class RcvFileNotFoundXFTP(val agentRcvFileId: String): StoreError() @Serializable @SerialName("connectionNotFound") class ConnectionNotFound(val agentConnId: String): StoreError() @Serializable @SerialName("connectionNotFoundById") class ConnectionNotFoundById(val connId: Long): StoreError() + @Serializable @SerialName("connectionNotFoundByMemberId") class ConnectionNotFoundByMemberId(val groupMemberId: Long): StoreError() @Serializable @SerialName("pendingConnectionNotFound") class PendingConnectionNotFound(val connId: Long): StoreError() @Serializable @SerialName("introNotFound") object IntroNotFound: StoreError() @Serializable @SerialName("uniqueID") object UniqueID: StoreError()