Fix custom emojis not being shown in display names when scrolling
quickly If the emojiIdentifier didn't change, the emojis wouldn't be re-added even after the text had been reset.
This commit is contained in:
parent
de02c73957
commit
fa4b5d3542
|
@ -17,7 +17,7 @@ class EmojiLabel: UILabel {
|
|||
private var emojiRequests: [ImageCache.Request] = []
|
||||
|
||||
func setEmojis(_ emojis: [Emoji], identifier: String) {
|
||||
guard emojis.count > 0, self.emojiIdentifier != identifier, let attributedText = attributedText else { return }
|
||||
guard emojis.count > 0, let attributedText = attributedText else { return }
|
||||
|
||||
self.emojiIdentifier = identifier
|
||||
emojiRequests.forEach { $0.cancel() }
|
||||
|
|
Loading…
Reference in New Issue