Post display name did change notification when an Account’s name changes.
This commit is contained in:
parent
268a5453ad
commit
10cdc1553e
|
@ -56,9 +56,12 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container,
|
|||
return settings.name
|
||||
}
|
||||
set {
|
||||
let currentNameForDisplay = nameForDisplay
|
||||
if newValue != settings.name {
|
||||
settings.name = newValue
|
||||
|
||||
if currentNameForDisplay != nameForDisplay {
|
||||
postDisplayNameDidChangeNotification()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue