diff --git a/apps/ios/SimpleXChat/APITypes.swift b/apps/ios/SimpleXChat/APITypes.swift index 636ba99927..33d683288a 100644 --- a/apps/ios/SimpleXChat/APITypes.swift +++ b/apps/ios/SimpleXChat/APITypes.swift @@ -1071,8 +1071,9 @@ public enum SMPHandshakeError: Decodable, Hashable { public enum SMPAgentError: Decodable, Hashable { case A_MESSAGE - case A_PROHIBITED + case A_PROHIBITED(prohibitedErr: String) case A_VERSION + case A_LINK(linkErr: String) case A_CRYPTO case A_DUPLICATE case A_QUEUE(queueErr: String) 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 f9438fca32..c32db1f712 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 @@ -8077,8 +8077,9 @@ sealed class SMPAgentError { is A_QUEUE -> "A_QUEUE" } @Serializable @SerialName("A_MESSAGE") object A_MESSAGE: SMPAgentError() - @Serializable @SerialName("A_PROHIBITED") object A_PROHIBITED: SMPAgentError() + @Serializable @SerialName("A_PROHIBITED") class A_PROHIBITED(prohibitedErr: String): SMPAgentError() @Serializable @SerialName("A_VERSION") object A_VERSION: SMPAgentError() + @Serializable @SerialName("A_LINK") class A_LINK(linkErr: String): SMPAgentError() @Serializable @SerialName("A_CRYPTO") object A_CRYPTO: SMPAgentError() @Serializable @SerialName("A_DUPLICATE") object A_DUPLICATE: SMPAgentError() @Serializable @SerialName("A_QUEUE") class A_QUEUE(val queueErr: String): SMPAgentError()