1
0
mirror of https://github.com/metabolist/metatext synced 2024-12-27 02:02:38 +01:00

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)