mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Various improvements
This commit is contained in:
@@ -287,7 +287,6 @@ public final class TextFieldComponent: Component {
|
||||
return false
|
||||
}
|
||||
|
||||
var images: [UIImage] = []
|
||||
if let data = pasteboard.data(forPasteboardType: "com.compuserve.gif") {
|
||||
component.paste(.gif(data))
|
||||
return false
|
||||
@@ -295,6 +294,7 @@ public final class TextFieldComponent: Component {
|
||||
component.paste(.video(data))
|
||||
return false
|
||||
} else {
|
||||
var images: [UIImage] = []
|
||||
var isPNG = false
|
||||
var isMemoji = false
|
||||
for item in pasteboard.items {
|
||||
@@ -332,6 +332,7 @@ public final class TextFieldComponent: Component {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user