summary refs log tree commit diff
path: root/webclient/home/home-controller.js
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-09-16 15:15:19 +0100
committerKegan Dougal <kegan@matrix.org>2014-09-16 15:35:23 +0100
commita402e0c5e6e432a175b48279c972bc9ae7e944bc (patch)
tree5611d5d4bb86b546f27485c14086a6cdd2ad5288 /webclient/home/home-controller.js
parentMove the notification logic out of an individual room controller and into the... (diff)
downloadsynapse-a402e0c5e6e432a175b48279c972bc9ae7e944bc.tar.xz
Added bing detection logic. Persist the display name of the user in localstorage for use when binging.
Diffstat (limited to 'webclient/home/home-controller.js')
-rw-r--r--webclient/home/home-controller.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/webclient/home/home-controller.js b/webclient/home/home-controller.js
index c0c4ea11aa..8ba817ca68 100644
--- a/webclient/home/home-controller.js
+++ b/webclient/home/home-controller.js
@@ -117,6 +117,10 @@ angular.module('HomeController', ['matrixService', 'eventHandlerService', 'Recen
         matrixService.getDisplayName($scope.config.user_id).then(
             function(response) {
                 $scope.profile.displayName = response.data.displayname;
+                var config = matrixService.config();
+                config.display_name = response.data.displayname;
+                matrixService.setConfig(config);
+                matrixService.saveConfig();
             },
             function(error) {
                 $scope.feedback = "Can't load display name";