Fix leak memory (Thread 1: EXC_BAD_ACCESS (code=EXC_I386_GPFLT)) (#917)

Closes: #829

Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com>
This commit is contained in:
Yusuke Arakawa 2023-02-18 16:53:11 +09:00 committed by GitHub
parent 9281e72e8c
commit 8d8955ee13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,7 @@ public struct ConsolidatedNotification: Identifiable {
self.type = type self.type = type
self.createdAt = createdAt self.createdAt = createdAt
self.accounts = accounts self.accounts = accounts
self.status = status self.status = status ?? nil
} }
public static func placeholder() -> ConsolidatedNotification { public static func placeholder() -> ConsolidatedNotification {