Attach menu improvements

This commit is contained in:
Ilya Laktyushin
2022-02-27 00:06:59 +04:00
parent b8e0fe64f2
commit 82104445dd
5 changed files with 51 additions and 20 deletions

View File

@@ -769,7 +769,8 @@ public final class MediaPickerScreen: ViewController, AttachmentContainable {
if !strongSelf.didSetReady && strongSelf.state != nil {
strongSelf.didSetReady = true
Queue.mainQueue().justDispatch {
strongSelf._ready.set(.single(true))
strongSelf._ready.set(.single(true)
|> delay(0.05, queue: Queue.mainQueue()))
Queue.mainQueue().after(0.5, {
strongSelf.preloadPromise.set(false)