Update the friends when changing the username or avatar
This commit is contained in:
@@ -66,7 +66,7 @@ define([
|
||||
}
|
||||
broadcast([clientId], "UPDATE_METADATA");
|
||||
if (Array.isArray(path) && path[0] === 'profile' && store.messenger) {
|
||||
store.messenger.updateMyData();
|
||||
Messaging.updateMyData(store);
|
||||
}
|
||||
onSync(cb);
|
||||
};
|
||||
@@ -644,7 +644,7 @@ define([
|
||||
}
|
||||
store.proxy[Constants.displayNameKey] = value;
|
||||
broadcast([clientId], "UPDATE_METADATA");
|
||||
if (store.messenger) { store.messenger.updateMyData(); }
|
||||
Messaging.updateMyData(store);
|
||||
onSync(cb);
|
||||
};
|
||||
|
||||
|
||||
@@ -152,6 +152,7 @@ define([
|
||||
Object.keys(msg.content).forEach(function (key) {
|
||||
friend[key] = msg.content[key];
|
||||
});
|
||||
ctx.updateMetadata();
|
||||
cb(true);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user