From d4057adf4dcf406578e1ef18c7195612f4d28435 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 21 Jul 2024 10:36:24 -0700 Subject: [PATCH] Avoid updating AccountDisplayNameLabel when emojis pref hasn't changed Oops --- Tusker/Views/AccountDisplayNameLabel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tusker/Views/AccountDisplayNameLabel.swift b/Tusker/Views/AccountDisplayNameLabel.swift index afaca61c..ed869d75 100644 --- a/Tusker/Views/AccountDisplayNameLabel.swift +++ b/Tusker/Views/AccountDisplayNameLabel.swift @@ -16,7 +16,7 @@ class AccountDisplayNameLabel: EmojiLabel { private var accountDisplayName: String? 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 } accountID = account.id