fix retVal squash logic so remote vals dont override local vals and get sent up

This commit is contained in:
Dan Ballard 2022-04-18 09:47:39 -07:00
parent 9901e081e4
commit 89f8ec0253
1 changed files with 1 additions and 2 deletions

View File

@ -527,8 +527,7 @@ func (eh *EventHandler) handleProfileEvent(ev *EventProfileEnvelope) string {
return ""
}
}
if val, err := profile.GetConversationAttribute(conversation.ID, attr.LocalScope.ConstructScopedZonedPath(zone.ConstructZonedPath(path))); err != nil && val != "" {
if val, err := profile.GetConversationAttribute(conversation.ID, attr.LocalScope.ConstructScopedZonedPath(zone.ConstructZonedPath(path))); err == nil || val != "" {
// we have a locally set override, don't pass this remote set public scope update to UI
return ""
}