Make properties optional

This commit is contained in:
ismailgulek 2021-10-14 12:02:46 +03:00
parent a7f531f81c
commit a3be60b2fb
No known key found for this signature in database
GPG key ID: E96336D42D9470A9

View file

@ -45,7 +45,7 @@ extension VectorWellKnown: Decodable {
struct VectorWellKnownEncryptionConfiguration: Decodable {
/// Indicate if E2EE is enabled by default
let isE2EEByDefaultEnabled: Bool
let isE2EEByDefaultEnabled: Bool?
enum CodingKeys: String, CodingKey {
case isE2EEByDefaultEnabled = "default"
@ -56,5 +56,5 @@ struct VectorWellKnownEncryptionConfiguration: Decodable {
struct VectorWellKnownJitsiConfiguration: Decodable {
/// Default Jitsi server
let preferredDomain: String
let preferredDomain: String?
}