Monoforums

This commit is contained in:
Isaac
2025-05-27 23:37:35 +08:00
parent 66ce61e756
commit 8d65fb3495
16 changed files with 154 additions and 145 deletions

View File

@@ -399,7 +399,10 @@ public final class ChatMessageItemImpl: ChatMessageItem, CustomStringConvertible
var hasAvatar = false
if !hasActionMedia {
if !isBroadcastChannel {
hasAvatar = true
if let channel = message.peers[message.id.peerId] as? TelegramChannel, channel.isMonoForum, chatLocation.threadId != nil {
} else {
hasAvatar = true
}
} else if let channel = message.peers[message.id.peerId] as? TelegramChannel, case let .broadcast(info) = channel.info {
if info.flags.contains(.messagesShouldHaveProfiles) {
hasAvatar = true