From 3a412ff714482372924be78d8a93bbf7fbebdae5 Mon Sep 17 00:00:00 2001 From: shannon Date: Tue, 18 Feb 2025 11:05:49 -0500 Subject: [PATCH] Add isReply to status view model Contributes to #399 [BUG] Multiple interactions do not collapse into a single notification --- .../NotificationRowView.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Mastodon/In Progress New Layout and Datamodel/NotificationRowView.swift b/Mastodon/In Progress New Layout and Datamodel/NotificationRowView.swift index a1d9f4acf..d1ca8399b 100644 --- a/Mastodon/In Progress New Layout and Datamodel/NotificationRowView.swift +++ b/Mastodon/In Progress New Layout and Datamodel/NotificationRowView.swift @@ -1001,6 +1001,7 @@ extension Mastodon.Entity.Status { public struct ViewModel { public let content: AttributedString? public let visibility: Mastodon.Entity.Status.Visibility? + public let isReply: Bool public let isPinned: Bool public let accountDisplayName: String? public let accountFullName: String? @@ -1042,6 +1043,7 @@ extension Mastodon.Entity.Status { return ViewModel( content: displayableContent, visibility: visibility, + isReply: inReplyToID != nil, isPinned: false, accountDisplayName: account.displayName, accountFullName: accountFullName,