This commit is contained in:
Isaac
2025-11-14 20:50:02 +08:00
parent 63055d7ba8
commit ac65d7f443
5 changed files with 41 additions and 5 deletions

View File

@@ -489,7 +489,7 @@ private final class PeerComponent: Component {
self.addSubview(crownIcon)
}
if topPlace != previousComponent?.topPlace {
if topPlace != previousComponent?.topPlace || previousComponent?.color != component.color {
crownIcon.image = StoryLiveChatMessageComponent.generateCrownImage(place: topPlace, backgroundColor: component.color, foregroundColor: .white, borderColor: component.theme.actionSheet.opaqueItemBackgroundColor)
}
if let image = crownIcon.image {