forked from zelo72/mastodon-ios
fix: post attachment task not trigger on queue issue
This commit is contained in:
parent
9460ab2c58
commit
5dc0cb0cc5
|
@ -292,11 +292,10 @@ final class ComposeViewModel: NSObject {
|
|||
.store(in: &disposeBag)
|
||||
|
||||
// setup attribute updater
|
||||
Publishers.CombineLatest(
|
||||
attachmentServices,
|
||||
context.timestampUpdatePublisher
|
||||
)
|
||||
.sink { attachmentServices, _ in
|
||||
attachmentServices
|
||||
.receive(on: DispatchQueue.main)
|
||||
.debounce(for: 0.3, scheduler: DispatchQueue.main)
|
||||
.sink { attachmentServices in
|
||||
// drive service upload state
|
||||
// make image upload in the queue
|
||||
for attachmentService in attachmentServices {
|
||||
|
|
Loading…
Reference in New Issue