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)
|
.store(in: &disposeBag)
|
||||||
|
|
||||||
// setup attribute updater
|
// setup attribute updater
|
||||||
Publishers.CombineLatest(
|
attachmentServices
|
||||||
attachmentServices,
|
.receive(on: DispatchQueue.main)
|
||||||
context.timestampUpdatePublisher
|
.debounce(for: 0.3, scheduler: DispatchQueue.main)
|
||||||
)
|
.sink { attachmentServices in
|
||||||
.sink { attachmentServices, _ in
|
|
||||||
// drive service upload state
|
// drive service upload state
|
||||||
// make image upload in the queue
|
// make image upload in the queue
|
||||||
for attachmentService in attachmentServices {
|
for attachmentService in attachmentServices {
|
||||||
|
|
Loading…
Reference in New Issue