From 8d8955ee133b9f7ecb9ba8936c890171c683021e Mon Sep 17 00:00:00 2001 From: Yusuke Arakawa <108506642+nekolaboratory@users.noreply.github.com> Date: Sat, 18 Feb 2023 16:53:11 +0900 Subject: [PATCH] Fix leak memory (Thread 1: EXC_BAD_ACCESS (code=EXC_I386_GPFLT)) (#917) Closes: #829 Co-authored-by: Yusuke Arakawa --- Packages/Models/Sources/Models/ConsolidatedNotification.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packages/Models/Sources/Models/ConsolidatedNotification.swift b/Packages/Models/Sources/Models/ConsolidatedNotification.swift index 4b1897f1..acc55153 100644 --- a/Packages/Models/Sources/Models/ConsolidatedNotification.swift +++ b/Packages/Models/Sources/Models/ConsolidatedNotification.swift @@ -26,7 +26,7 @@ public struct ConsolidatedNotification: Identifiable { self.type = type self.createdAt = createdAt self.accounts = accounts - self.status = status + self.status = status ?? nil } public static func placeholder() -> ConsolidatedNotification {