mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-14 05:21:12 +00:00
Timeline: Do nothing if no new statuses
This commit is contained in:
parent
e512453cfe
commit
62b26fdbb7
1 changed files with 3 additions and 0 deletions
|
@ -84,6 +84,9 @@ class TimelineViewModel: ObservableObject, StatusesFetcher {
|
|||
newStatuses = newStatuses.filter { status in
|
||||
!statuses.contains(where: { $0.id == status.id })
|
||||
}
|
||||
|
||||
guard !newStatuses.isEmpty else { return }
|
||||
|
||||
pendingStatusesObserver.pendingStatuses.insert(contentsOf: newStatuses.map{ $0.id }, at: 0)
|
||||
pendingStatusesObserver.feedbackGenerator.impactOccurred()
|
||||
|
||||
|
|
Loading…
Reference in a new issue