mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios
This commit is contained in:
@@ -838,9 +838,13 @@ final class ChatEmptyNodeTopicChatContent: ASDisplayNode, ChatEmptyNodeContent,
|
||||
if let fileId = self.fileId {
|
||||
iconContent = .animation(content: .customEmoji(fileId: fileId), size: CGSize(width: 32.0, height: 32.0), placeholderColor: .clear, themeColor: serviceColor.primaryText, loopMode: .count(2))
|
||||
} else {
|
||||
iconContent = .topic(title: String(title.prefix(1)))
|
||||
var colorIndex: Int = 0
|
||||
if case let .replyThread(replyThreadMessage) = interfaceState.chatLocation {
|
||||
colorIndex = Int(clamping: abs(replyThreadMessage.effectiveTopId.id))
|
||||
}
|
||||
iconContent = .topic(title: String(title.prefix(1)), colorIndex: colorIndex)
|
||||
}
|
||||
|
||||
|
||||
let insets = UIEdgeInsets(top: inset, left: inset, bottom: inset, right: inset)
|
||||
let titleSpacing: CGFloat = 6.0
|
||||
let iconSpacing: CGFloat = 9.0
|
||||
|
||||
Reference in New Issue
Block a user