diff --git a/Tusker/Views/MultiSourceEmojiLabel.swift b/Tusker/Views/MultiSourceEmojiLabel.swift index 35479f2ac5..1b68212169 100644 --- a/Tusker/Views/MultiSourceEmojiLabel.swift +++ b/Tusker/Views/MultiSourceEmojiLabel.swift @@ -22,10 +22,6 @@ class MultiSourceEmojiLabel: UILabel, BaseEmojiLabel { func setEmojis(pairs: [(String, [Emoji])], identifier: ID) { guard pairs.count > 0 else { return } - self.emojiIdentifier = identifier - emojiRequests.forEach { $0.cancel() } - emojiRequests = [] - var attributedStrings = pairs.map { NSAttributedString(string: $0.0) } func recombine() { @@ -40,7 +36,7 @@ class MultiSourceEmojiLabel: UILabel, BaseEmojiLabel { self.replaceEmojis(in: string, emojis: emojis, identifier: identifier) { (attributedString, _) in attributedStrings[index] = attributedString DispatchQueue.main.async { [weak self] in - guard let self = self, self.emojiIdentifier == AnyHashable(identifier) else { return } + guard let self else { return } recombine() } }