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:
@@ -191,6 +191,7 @@ private func textInputBackgroundImage(backgroundColor: UIColor, strokeColor: UIC
|
||||
|
||||
enum ChatTextInputPanelPasteData {
|
||||
case images([UIImage])
|
||||
case video(Data)
|
||||
case gif(Data)
|
||||
case sticker(UIImage, Bool)
|
||||
}
|
||||
@@ -1911,6 +1912,9 @@ class ChatTextInputPanelNode: ChatInputPanelNode, ASEditableTextNodeDelegate {
|
||||
if let data = pasteboard.data(forPasteboardType: "com.compuserve.gif") {
|
||||
self.paste(.gif(data))
|
||||
return false
|
||||
} else if let data = pasteboard.data(forPasteboardType: "public.mpeg-4") {
|
||||
self.paste(.video(data))
|
||||
return false
|
||||
} else {
|
||||
var isPNG = false
|
||||
var isMemoji = false
|
||||
|
||||
Reference in New Issue
Block a user