Update avatar on displayname change

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2017-12-13 20:48:37 +01:00 committed by Julius Härtl
parent a4ca92f29a
commit 0f235aec1f
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 7 additions and 1 deletions

View File

@ -256,8 +256,14 @@ $(document).ready(function () {
});
var userSettings = new OC.Settings.UserSettings();
var federationSettingsView = new OC.Settings.FederationSettingsView({
el: '#personal-settings'
el: '#personal-settings',
config: userSettings
});
userSettings.on("sync", function() {
updateAvatar(false);
});
federationSettingsView.render();