Monoforums

This commit is contained in:
Isaac
2025-05-29 00:23:43 +08:00
parent da477ec84e
commit 7b72c1a034
11 changed files with 637 additions and 225 deletions

View File

@@ -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
}
}