mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Chat wallpaper fixes
This commit is contained in:
@@ -515,8 +515,11 @@ public class WallpaperGalleryController: ViewController {
|
||||
var dismissed = false
|
||||
toolbarNode.done = { [weak self] in
|
||||
if let strongSelf = self, !dismissed {
|
||||
dismissed = true
|
||||
if let centralItemNode = strongSelf.galleryNode.pager.centralItemNode() as? WallpaperGalleryItemNode {
|
||||
if centralItemNode.cropNode.scrollNode.view.isDecelerating {
|
||||
return
|
||||
}
|
||||
dismissed = true
|
||||
let options = centralItemNode.options
|
||||
if !strongSelf.entries.isEmpty {
|
||||
let entry = strongSelf.entries[centralItemNode.index]
|
||||
|
||||
Reference in New Issue
Block a user