summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2014-09-23 20:01:11 +0100
committerMatthew Hodgson <matthew@matrix.org>2014-09-23 20:01:32 +0100
commit0e848d73f9aea9170b67527a66a90d1287013356 (patch)
tree72fc7403cc646ccb880bab9264c6b7f5d4506ecf
parentmanu: what's going on here? (diff)
downloadsynapse-0e848d73f9aea9170b67527a66a90d1287013356.tar.xz
oops, stupid bug on room/$room/state
Diffstat (limited to '')
-rw-r--r--webclient/home/home-controller.js4
-rw-r--r--webclient/room/room-controller.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/webclient/home/home-controller.js b/webclient/home/home-controller.js
index 0624a8b0e6..f1295560ef 100644
--- a/webclient/home/home-controller.js
+++ b/webclient/home/home-controller.js
@@ -96,7 +96,7 @@ angular.module('HomeController', ['matrixService', 'eventHandlerService', 'Recen
                 // TODO: factor out the common housekeeping whenever we try to join a room or alias
                 matrixService.roomState(final_room_id).then(
                     function(response) {
-                        eventHandlerService.handleEvents(response, false, true);
+                        eventHandlerService.handleEvents(response.data, false, true);
                     },
                     function(error) {
                         $scope.feedback = "Failed to get room state for: " + final_room_id;
@@ -117,7 +117,7 @@ angular.module('HomeController', ['matrixService', 'eventHandlerService', 'Recen
                 // TODO: factor out the common housekeeping whenever we try to join a room or alias
                 matrixService.roomState(response.room_id).then(
                     function(response) {
-                        eventHandlerService.handleEvents(response, false, true);
+                        eventHandlerService.handleEvents(response.data, false, true);
                     },
                     function(error) {
                         $scope.feedback = "Failed to get room state for: " + response.room_id;
diff --git a/webclient/room/room-controller.js b/webclient/room/room-controller.js
index c58d675760..ff0f1e05fa 100644
--- a/webclient/room/room-controller.js
+++ b/webclient/room/room-controller.js
@@ -482,7 +482,7 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput'])
                                         // TODO: factor out the common housekeeping whenever we try to join a room or alias
                                         matrixService.roomState(response.room_id).then(
                                             function(response) {
-                                                eventHandlerService.handleEvents(response, false, true);
+                                                eventHandlerService.handleEvents(response.data, false, true);
                                             },
                                             function(error) {
                                                 $scope.feedback = "Failed to get room state for: " + response.room_id;
@@ -744,7 +744,7 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput'])
                             // TODO: factor out the common housekeeping whenever we try to join a room or alias
                             matrixService.roomState($scope.room_id).then(
                                 function(response) {
-                                    eventHandlerService.handleEvents(response, false, true);
+                                    eventHandlerService.handleEvents(response.data, false, true);
                                 },
                                 function(error) {
                                     console.error("Failed to get room state for: " + $scope.room_id);