summary refs log tree commit diff
path: root/syweb/webclient/room/room.html
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-11-14 11:29:50 +0000
committerKegan Dougal <kegan@matrix.org>2014-11-14 11:29:50 +0000
commit49a1b4262d1efbadb83d0959339d8b208dd9bc93 (patch)
tree45ecc72f81ca965404d2b075f10f09aa78a0f974 /syweb/webclient/room/room.html
parentUse mUserDisplayName filter in more places. Store power_level[norm] for each ... (diff)
downloadsynapse-49a1b4262d1efbadb83d0959339d8b208dd9bc93.tar.xz
Use modelService to access room member power levels rather than RoomController.
Diffstat (limited to '')
-rw-r--r--syweb/webclient/room/room.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/syweb/webclient/room/room.html b/syweb/webclient/room/room.html
index 17565f879b..ee7c9777a9 100644
--- a/syweb/webclient/room/room.html
+++ b/syweb/webclient/room/room.html
@@ -132,12 +132,12 @@
                      ng-click="$parent.goToUserPage(member.id)"
                      ng-src="{{member.avatar_url || 'img/default-profile.png'}}" 
                      alt="{{ member.displayname || member.id.substr(0, member.id.indexOf(':')) }}"
-                     title="{{ member.id }} - power: {{ member.powerLevel }}"
+                     title="{{ member.id }} - power: {{ room.now.members[member.id].power_level }}"
                      width="80" height="80"/>
                 <!-- <div class="userPowerLevel" ng-style="{'width': member.powerLevelNorm +'%'}"></div> -->
             </div>
             <div class="userName">
-                <pie-chart ng-show="member.powerLevelNorm" data="[ (member.powerLevelNorm + 0), (100 - member.powerLevelNorm) ]"></pie-chart>
+                <pie-chart ng-show="room.now.members[member.id].power_level_norm" data="[ (room.now.members[member.id].power_level_norm + 0), (100 - room.now.members[member.id].power_level_norm) ]"></pie-chart>
                 {{ member.id | mUserDisplayName:room_id:true }}
                 <span ng-show="member.last_active_ago" style="color: #aaa">({{ member.last_active_ago + (now - member.last_updated) | duration }})</span>
             </div>