[FIX] Jitsi notification delay (#2668)

Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
Djorkaeff Alexandre 2021-01-04 13:08:26 -03:00 committed by GitHub
parent 53c51feca2
commit 796dc75882
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -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
}
} }