mirror of
https://github.com/mastodon/mastodon-ios
synced 2025-04-11 22:58:02 +02:00
Add isReply to status view model
Contributes to #399 [BUG] Multiple interactions do not collapse into a single notification
This commit is contained in:
parent
559e9b0175
commit
3a412ff714
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user