mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
no message
This commit is contained in:
@@ -387,14 +387,14 @@ class ChatMessageBubbleItemNode: ChatMessageItemView {
|
||||
}
|
||||
|
||||
if let info = item.message.forwardInfo {
|
||||
if let author = info.author as? TelegramUser, let _ = author.botInfo {
|
||||
if let author = info.author as? TelegramUser, let _ = author.botInfo, !item.message.media.isEmpty && !(item.message.media.first is TelegramMediaAction) {
|
||||
needShareButton = true
|
||||
} else if let author = info.author as? TelegramChannel, case .broadcast = author.info, !(item.message.media.first is TelegramMediaAction) {
|
||||
} else if let author = info.author as? TelegramChannel, case .broadcast = author.info {
|
||||
needShareButton = true
|
||||
}
|
||||
}
|
||||
|
||||
if !needShareButton, let author = item.message.author as? TelegramUser, let _ = author.botInfo, !(item.message.media.first is TelegramMediaAction) {
|
||||
if !needShareButton, let author = item.message.author as? TelegramUser, let _ = author.botInfo, !item.message.media.isEmpty && !(item.message.media.first is TelegramMediaAction) {
|
||||
needShareButton = true
|
||||
}
|
||||
if !needShareButton {
|
||||
|
||||
Reference in New Issue
Block a user