Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios

This commit is contained in:
Ilya Laktyushin
2022-10-22 21:55:15 +03:00
19 changed files with 290 additions and 52 deletions

View File

@@ -1392,6 +1392,13 @@ class ChatMessageBubbleItemNode: ChatMessageItemView, ChatMessagePreviewItemNode
}
authorRank = attributes.rank
}
if authorRank == nil {
if let topicAuthorId = item.associatedData.topicAuthorId, topicAuthorId == message.author?.id {
//TODO:localize
authorRank = .custom("Topic Author")
}
}
case .group:
break
}