From 6af38ade270ae30e01337d968aa2b952bd9474c1 Mon Sep 17 00:00:00 2001 From: Marcus Kida Date: Wed, 31 Jan 2024 11:28:48 +0100 Subject: [PATCH] Reload notifications after interacting with them (#1221) --- ...otificationTimelineViewController+DataSourceProvider.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Mastodon/Scene/Notification/NotificationTimeline/NotificationTimelineViewController+DataSourceProvider.swift b/Mastodon/Scene/Notification/NotificationTimeline/NotificationTimelineViewController+DataSourceProvider.swift index 3e227b422..13c5d315c 100644 --- a/Mastodon/Scene/Notification/NotificationTimeline/NotificationTimelineViewController+DataSourceProvider.swift +++ b/Mastodon/Scene/Notification/NotificationTimeline/NotificationTimelineViewController+DataSourceProvider.swift @@ -38,7 +38,9 @@ extension NotificationTimelineViewController: DataSourceProvider { } func update(status: MastodonStatus, intent: MastodonStatus.UpdateIntent) { - viewModel.dataController.update(status: status, intent: intent) + Task { + await viewModel.loadLatest() + } } @MainActor