forked from shadowfacts/Tusker
parent
dbdf1d39bd
commit
2617d22819
|
@ -21,6 +21,10 @@ public class Notification: Decodable {
|
|||
self.id = try container.decode(String.self, forKey: .id)
|
||||
if let kind = try? container.decode(Kind.self, forKey: .kind) {
|
||||
self.kind = kind
|
||||
} else if let s = try? container.decode(String.self, forKey: .kind),
|
||||
s == "status" {
|
||||
// represent notifications of other people posting as regular mentions for now
|
||||
self.kind = .mention
|
||||
} else {
|
||||
self.kind = .unknown
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue