Reload notifications after interacting with them (#1221)

This commit is contained in:
Marcus Kida 2024-01-31 11:28:48 +01:00 committed by GitHub
parent 5773ceb2ad
commit 6af38ade27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -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