mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Stories
This commit is contained in:
@@ -2155,6 +2155,16 @@ class ChatListItemNode: ItemListRevealOptionsItemNode {
|
||||
}
|
||||
}
|
||||
}
|
||||
if textString.length == 0, case let .groupReference(data) = item.content, let storyState = data.storyState, storyState.stats.totalCount != 0 {
|
||||
//TODO:localize
|
||||
let storyText: String
|
||||
if storyState.stats.totalCount == 1 {
|
||||
storyText = "1 story"
|
||||
} else {
|
||||
storyText = "\(storyState.stats.totalCount) stories"
|
||||
}
|
||||
textString.append(NSAttributedString(string: storyText, font: textFont, textColor: theme.messageTextColor))
|
||||
}
|
||||
attributedText = textString
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user