From 0f235aec1f85078b13ee7a1b1b8bbccc942a68f3 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 13 Dec 2017 20:48:37 +0100 Subject: Update avatar on displayname change Signed-off-by: Roeland Jago Douma --- settings/js/settings/personalInfo.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'settings/js') diff --git a/settings/js/settings/personalInfo.js b/settings/js/settings/personalInfo.js index 3a4542df748..c95b87b01da 100644 --- a/settings/js/settings/personalInfo.js +++ b/settings/js/settings/personalInfo.js @@ -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(); -- cgit v1.2.3