mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Monoforums
This commit is contained in:
@@ -178,6 +178,9 @@ final class ChatMessageNotificationItemNode: NotificationItemNode {
|
||||
if firstMessage.id.peerId.isRepliesOrVerificationCodes, let author = firstMessage.forwardInfo?.author {
|
||||
avatarPeer = EnginePeer(author)
|
||||
}
|
||||
if case let .channel(channel) = avatarPeer, channel.isMonoForum, let linkedMonoforumId = channel.linkedMonoforumId, let mainChannel = firstMessage.peers[linkedMonoforumId] as? TelegramChannel {
|
||||
avatarPeer = .channel(mainChannel)
|
||||
}
|
||||
self.avatarNode.setPeer(context: item.context, theme: presentationData.theme, peer: avatarPeer, overrideImage: peer.id == item.context.account.peerId ? .savedMessagesIcon : nil, emptyColor: presentationData.theme.list.mediaPlaceholderColor)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user