mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix empty name height
This commit is contained in:
parent
27fdc2de5f
commit
c7422c1a5a
@ -2358,6 +2358,10 @@ class ChatListItemNode: ItemListRevealOptionsItemNode {
|
||||
if item.interaction.isInlineMode {
|
||||
titleLeftCutout = 22.0
|
||||
}
|
||||
|
||||
if let titleAttributedStringValue = titleAttributedString, titleAttributedStringValue.length == 0 {
|
||||
titleAttributedString = NSAttributedString(string: " ", font: titleFont, textColor: theme.titleColor)
|
||||
}
|
||||
|
||||
let titleRectWidth = rawContentWidth - dateLayout.size.width - 10.0 - statusWidth - titleIconsWidth
|
||||
var titleCutout: TextNodeCutout?
|
||||
|
Loading…
x
Reference in New Issue
Block a user