Tune forwarding toast animation

This commit is contained in:
Ilya Laktyushin
2021-03-15 01:19:05 +04:00
parent d7017ce4d4
commit e53c6edf2e
5 changed files with 8 additions and 9 deletions

View File

@@ -591,10 +591,9 @@ final class ShareControllerNode: ViewControllerTracingNode, UIScrollViewDelegate
if self.fromForeignApp {
self.transitionToContentNode(ShareLoadingContainerNode(theme: self.presentationData.theme, forceNativeAppearance: true), fastOut: true)
} else {
self.animateOut(shared: true, completion: { [weak self] in
self?
.completed?(peerIds)
self.animateOut(shared: true, completion: {
})
self.completed?(peerIds)
}
let fromForeignApp = self.fromForeignApp
self.shareDisposable.set((signal
@@ -605,7 +604,7 @@ final class ShareControllerNode: ViewControllerTracingNode, UIScrollViewDelegate
if case .done = status, !fromForeignApp {
strongSelf.dismiss?(true)
strongSelf.completed?(peerIds)
return
}
guard let contentNode = strongSelf.contentNode as? ShareLoadingContainerNode else {