mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Various improvements
This commit is contained in:
@@ -589,10 +589,15 @@ private final class SheetContent: CombinedComponent {
|
||||
options: state?.options ?? [],
|
||||
purpose: purpose,
|
||||
completion: { [weak starsContext] stars in
|
||||
starsContext?.add(balance: StarsAmount(value: stars, nanos: 0))
|
||||
Queue.mainQueue().after(0.1) {
|
||||
completion()
|
||||
guard let starsContext else {
|
||||
return
|
||||
}
|
||||
starsContext.add(balance: StarsAmount(value: stars, nanos: 0))
|
||||
|
||||
let _ = (starsContext.onUpdate
|
||||
|> deliverOnMainQueue).start(next: {
|
||||
completion()
|
||||
})
|
||||
}
|
||||
)
|
||||
controller?.push(purchaseController)
|
||||
|
||||
Reference in New Issue
Block a user