diff --git a/Mastodon/Scene/Share/View/Content/NotificationView+Configuration.swift b/Mastodon/Scene/Share/View/Content/NotificationView+Configuration.swift index f03fc3fb7..d81ee425b 100644 --- a/Mastodon/Scene/Share/View/Content/NotificationView+Configuration.swift +++ b/Mastodon/Scene/Share/View/Content/NotificationView+Configuration.swift @@ -37,8 +37,6 @@ extension NotificationView { extension NotificationView { public func configure(notification: MastodonNotification) { - viewModel.objects.insert(notification) - configureAuthor(notification: notification) switch notification.entity.type { diff --git a/MastodonSDK/Sources/MastodonSDK/Entity/Mastodon+Entity+Account.swift b/MastodonSDK/Sources/MastodonSDK/Entity/Mastodon+Entity+Account.swift index 9e5a39019..be4225659 100644 --- a/MastodonSDK/Sources/MastodonSDK/Entity/Mastodon+Entity+Account.swift +++ b/MastodonSDK/Sources/MastodonSDK/Entity/Mastodon+Entity+Account.swift @@ -51,33 +51,6 @@ extension Mastodon.Entity { public let source: Source? public let suspended: Bool? public let muteExpiresAt: Date? - - internal init(id: Mastodon.Entity.Account.ID, username: String, acct: String, url: String, displayName: String, note: String, avatar: String, avatarStatic: String? = nil, header: String, headerStatic: String? = nil, locked: Bool, emojis: [Mastodon.Entity.Emoji] = [], discoverable: Bool? = nil, createdAt: Date, lastStatusAt: Date? = nil, statusesCount: Int, followersCount: Int, followingCount: Int, moved: Mastodon.Entity.Account? = nil, fields: [Mastodon.Entity.Field]? = nil, bot: Bool? = nil, source: Mastodon.Entity.Source? = nil, suspended: Bool? = nil, muteExpiresAt: Date? = nil) { - self.id = id - self.username = username - self.acct = acct - self.url = url - self.displayName = displayName - self.note = note - self.avatar = avatar - self.avatarStatic = avatarStatic - self.header = header - self.headerStatic = headerStatic - self.locked = locked - self.emojis = emojis - self.discoverable = discoverable - self.createdAt = createdAt - self.lastStatusAt = lastStatusAt - self.statusesCount = statusesCount - self.followersCount = followersCount - self.followingCount = followingCount - self.moved = moved - self.fields = fields - self.bot = bot - self.source = source - self.suspended = suspended - self.muteExpiresAt = muteExpiresAt - } } } diff --git a/MastodonSDK/Sources/MastodonUI/View/Content/NotificationView+ViewModel.swift b/MastodonSDK/Sources/MastodonUI/View/Content/NotificationView+ViewModel.swift index ad59df742..a250028d5 100644 --- a/MastodonSDK/Sources/MastodonUI/View/Content/NotificationView+ViewModel.swift +++ b/MastodonSDK/Sources/MastodonUI/View/Content/NotificationView+ViewModel.swift @@ -19,7 +19,6 @@ import CoreDataStack extension NotificationView { public final class ViewModel: ObservableObject { public var disposeBag = Set() - public var objects = Set() @Published public var context: AppContext? @Published public var authContext: AuthContext? diff --git a/MastodonSDK/Sources/MastodonUI/View/Content/NotificationView.swift b/MastodonSDK/Sources/MastodonUI/View/Content/NotificationView.swift index 394904dc1..437a7bb2e 100644 --- a/MastodonSDK/Sources/MastodonUI/View/Content/NotificationView.swift +++ b/MastodonSDK/Sources/MastodonUI/View/Content/NotificationView.swift @@ -178,8 +178,6 @@ public final class NotificationView: UIView { public func prepareForReuse() { disposeBag.removeAll() - - viewModel.objects.removeAll() viewModel.authContext = nil viewModel.authorAvatarImageURL = nil