Ensure main thread

This commit is contained in:
Justin Mazzocchi 2021-03-05 21:49:47 -08:00
parent 11f5a3a914
commit d8bd825788
No known key found for this signature in database
GPG key ID: E223E6937AAFB01C

View file

@ -250,6 +250,7 @@ extension CollectionItemsViewModel: CollectionViewModel {
.sink { _ in }
.store(in: &requestCancellables)
collectionService.requestMarkerLastReadId()
.receive(on: DispatchQueue.main)
.sink { _ in } receiveValue: { [weak self] in self?.markerLastReadId = $0 }
.store(in: &cancellables)