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:
@@ -10,7 +10,6 @@ import Display
|
||||
import UIKit
|
||||
import UndoUI
|
||||
import ShareController
|
||||
import ChatQrCodeScreen
|
||||
import ChatShareMessageTagView
|
||||
import ReactionSelectionNode
|
||||
import TopMessageReactions
|
||||
@@ -114,7 +113,7 @@ extension ChatControllerImpl {
|
||||
shareController.parentNavigationController = self.navigationController as? NavigationController
|
||||
|
||||
if let message = messages.first, message.media.contains(where: { media in
|
||||
if media is TelegramMediaContact || media is TelegramMediaPoll {
|
||||
if media is TelegramMediaContact || media is TelegramMediaPoll || media is TelegramMediaTodo {
|
||||
return true
|
||||
} else if let file = media as? TelegramMediaFile, file.isSticker || file.isAnimatedSticker || file.isVideoSticker {
|
||||
return true
|
||||
@@ -139,12 +138,6 @@ extension ChatControllerImpl {
|
||||
}
|
||||
}
|
||||
}
|
||||
shareController.openShareAsImage = { [weak self] messages in
|
||||
guard let self else {
|
||||
return
|
||||
}
|
||||
self.present(ChatQrCodeScreenImpl(context: self.context, subject: .messages(messages)), in: .window(.root))
|
||||
}
|
||||
shareController.dismissed = { [weak self] shared in
|
||||
if shared {
|
||||
self?.commitPurposefulAction()
|
||||
|
||||
Reference in New Issue
Block a user