mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-24 05:29:22 -05:00
oops, stupid bug on room/$room/state
This commit is contained in:
parent
cbea225d97
commit
0e848d73f9
@ -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
|
// TODO: factor out the common housekeeping whenever we try to join a room or alias
|
||||||
matrixService.roomState(final_room_id).then(
|
matrixService.roomState(final_room_id).then(
|
||||||
function(response) {
|
function(response) {
|
||||||
eventHandlerService.handleEvents(response, false, true);
|
eventHandlerService.handleEvents(response.data, false, true);
|
||||||
},
|
},
|
||||||
function(error) {
|
function(error) {
|
||||||
$scope.feedback = "Failed to get room state for: " + final_room_id;
|
$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
|
// TODO: factor out the common housekeeping whenever we try to join a room or alias
|
||||||
matrixService.roomState(response.room_id).then(
|
matrixService.roomState(response.room_id).then(
|
||||||
function(response) {
|
function(response) {
|
||||||
eventHandlerService.handleEvents(response, false, true);
|
eventHandlerService.handleEvents(response.data, false, true);
|
||||||
},
|
},
|
||||||
function(error) {
|
function(error) {
|
||||||
$scope.feedback = "Failed to get room state for: " + response.room_id;
|
$scope.feedback = "Failed to get room state for: " + response.room_id;
|
||||||
|
@ -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
|
// TODO: factor out the common housekeeping whenever we try to join a room or alias
|
||||||
matrixService.roomState(response.room_id).then(
|
matrixService.roomState(response.room_id).then(
|
||||||
function(response) {
|
function(response) {
|
||||||
eventHandlerService.handleEvents(response, false, true);
|
eventHandlerService.handleEvents(response.data, false, true);
|
||||||
},
|
},
|
||||||
function(error) {
|
function(error) {
|
||||||
$scope.feedback = "Failed to get room state for: " + response.room_id;
|
$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
|
// TODO: factor out the common housekeeping whenever we try to join a room or alias
|
||||||
matrixService.roomState($scope.room_id).then(
|
matrixService.roomState($scope.room_id).then(
|
||||||
function(response) {
|
function(response) {
|
||||||
eventHandlerService.handleEvents(response, false, true);
|
eventHandlerService.handleEvents(response.data, false, true);
|
||||||
},
|
},
|
||||||
function(error) {
|
function(error) {
|
||||||
console.error("Failed to get room state for: " + $scope.room_id);
|
console.error("Failed to get room state for: " + $scope.room_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user