Post display name did change notification when an Account’s name changes.

This commit is contained in:
Brent Simmons 2019-03-31 16:12:03 -07:00
parent 268a5453ad
commit 10cdc1553e
1 changed files with 4 additions and 1 deletions

View File

@ -56,9 +56,12 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container,
return settings.name return settings.name
} }
set { set {
let currentNameForDisplay = nameForDisplay
if newValue != settings.name { if newValue != settings.name {
settings.name = newValue settings.name = newValue
if currentNameForDisplay != nameForDisplay {
postDisplayNameDidChangeNotification()
}
} }
} }
} }