mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Topic-related fixes
This commit is contained in:
@@ -1397,7 +1397,13 @@ class ChatMessageBubbleItemNode: ChatMessageItemView, ChatMessagePreviewItemNode
|
||||
authorRank = attributes.rank
|
||||
}
|
||||
|
||||
if authorRank == nil {
|
||||
var enableAutoRank = false
|
||||
if let authorRank = authorRank, case .admin = authorRank {
|
||||
enableAutoRank = true
|
||||
} else if authorRank == nil {
|
||||
enableAutoRank = true
|
||||
}
|
||||
if enableAutoRank {
|
||||
if let topicAuthorId = item.associatedData.topicAuthorId, topicAuthorId == message.author?.id {
|
||||
authorRank = .custom(item.presentationData.strings.Chat_Message_TopicAuthorBadge)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user