mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-23 12:00:39 -04:00
Move getUserPowerLevel to modelService.
This commit is contained in:
parent
78bf5648e7
commit
b93804529d
5 changed files with 58 additions and 71 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue