[FIX] Jitsi notification delay (#2668)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
53c51feca2
commit
796dc75882
|
@ -10,4 +10,14 @@ import Foundation
|
||||||
|
|
||||||
enum MessageType: String, Codable {
|
enum MessageType: String, Codable {
|
||||||
case e2e
|
case e2e
|
||||||
|
case unknown
|
||||||
|
|
||||||
|
public init(from decoder: Decoder) throws {
|
||||||
|
guard let rawValue = try? decoder.singleValueContainer().decode(String.self) else {
|
||||||
|
self = .unknown
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
self = MessageType(rawValue: rawValue) ?? .unknown
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue