Merge pull request #14791 from SimonWalton-HiFi/pal_username_update

Don't update PAL namecard with empty strings
This commit is contained in:
Shannon Romano 2019-01-29 15:41:31 -08:00 committed by GitHub
commit 4c4a2036c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1215,7 +1215,7 @@ Rectangle {
if (userIndex !== -1) {
['userName', 'admin', 'connection', 'profileUrl', 'placeName'].forEach(function (name) {
var value = message.params[name];
if (value === undefined) {
if (value === undefined || value == "") {
return;
}
nearbyUserModel.setProperty(userIndex, name, value);