Move getUserPowerLevel to modelService.

This commit is contained in:
Kegan Dougal 2014-11-14 16:15:32 +00:00
parent 78bf5648e7
commit b93804529d
5 changed files with 58 additions and 71 deletions

View file

@ -405,7 +405,6 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput', 'a
// The room members is available in the data fetched by initialSync
if ($scope.room) {
var messages = $scope.room.events;
if (0 === messages.length
@ -578,7 +577,7 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput', 'a
// scope this so the template can check power levels and enable/disable
// buttons
$scope.pow = eventHandlerService.getUserPowerLevel;
$scope.pow = modelService.getUserPowerLevel;
var modalInstance = $modal.open({
templateUrl: 'eventInfoTemplate.html',