mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Camera and editor improvements
This commit is contained in:
@@ -286,6 +286,10 @@ final class MediaPickerGridItemNode: GridItemNode {
|
||||
if self.backgroundNode.supernode == nil {
|
||||
self.insertSubnode(self.backgroundNode, at: 0)
|
||||
}
|
||||
} else {
|
||||
if self.draftNode.supernode != nil {
|
||||
self.draftNode.removeFromSupernode()
|
||||
}
|
||||
}
|
||||
|
||||
if self.currentMediaState == nil || self.currentMediaState!.0.uniqueIdentifier != media.identifier || self.currentMediaState!.1 != index {
|
||||
@@ -315,6 +319,10 @@ final class MediaPickerGridItemNode: GridItemNode {
|
||||
if self.backgroundNode.supernode == nil {
|
||||
self.insertSubnode(self.backgroundNode, at: 0)
|
||||
}
|
||||
} else {
|
||||
if self.draftNode.supernode != nil {
|
||||
self.draftNode.removeFromSupernode()
|
||||
}
|
||||
}
|
||||
|
||||
if self.currentState == nil || self.currentState!.0 !== fetchResult || self.currentState!.1 != index {
|
||||
|
||||
Reference in New Issue
Block a user