Avoid updating AccountDisplayNameLabel when emojis pref hasn't changed

Oops
This commit is contained in:
Shadowfacts 2024-07-21 10:36:24 -07:00
parent 007937d2d7
commit d4057adf4d
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ class AccountDisplayNameLabel: EmojiLabel {
private var accountDisplayName: String? private var accountDisplayName: String?
func updateForAccountDisplayName(account: some AccountProtocol) { func updateForAccountDisplayName(account: some AccountProtocol) {
guard accountID != account.id || accountDisplayName != account.displayName || Preferences.shared.hideCustomEmojiInUsernames == hasEmojis else { guard accountID != account.id || accountDisplayName != account.displayName || Preferences.shared.hideCustomEmojiInUsernames != hasEmojis else {
return return
} }
accountID = account.id accountID = account.id