mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Monoforums
This commit is contained in:
@@ -864,15 +864,19 @@ public class ChatMessageAnimatedStickerItemNode: ChatMessageItemView {
|
||||
if replyThreadMessage.peerId != item.context.account.peerId {
|
||||
if replyThreadMessage.peerId.isGroupOrChannel && item.message.author != nil {
|
||||
var isBroadcastChannel = false
|
||||
if let peer = item.message.peers[item.message.id.peerId] as? TelegramChannel, case .broadcast = peer.info {
|
||||
isBroadcastChannel = true
|
||||
var isMonoforum = false
|
||||
if let peer = item.message.peers[item.message.id.peerId] as? TelegramChannel {
|
||||
if case .broadcast = peer.info {
|
||||
isBroadcastChannel = true
|
||||
}
|
||||
isMonoforum = peer.isMonoForum
|
||||
}
|
||||
|
||||
if replyThreadMessage.isChannelPost, replyThreadMessage.effectiveTopId == item.message.id {
|
||||
isBroadcastChannel = true
|
||||
}
|
||||
|
||||
if !isBroadcastChannel {
|
||||
if !isBroadcastChannel && !isMonoforum {
|
||||
hasAvatar = true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user