From 2617d228198c4c0135288e30ad2533734c3cd7d7 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Tue, 17 May 2022 10:36:33 -0400 Subject: [PATCH] Show notifications for other people's posts Closes #161 --- Pachyderm/Sources/Pachyderm/Model/Notification.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Pachyderm/Sources/Pachyderm/Model/Notification.swift b/Pachyderm/Sources/Pachyderm/Model/Notification.swift index 84ca0025..fd04818f 100644 --- a/Pachyderm/Sources/Pachyderm/Model/Notification.swift +++ b/Pachyderm/Sources/Pachyderm/Model/Notification.swift @@ -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 }