mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-15 15:22:15 -04:00
Added num_joined_users key to /publicRooms for each room. Show this information in the webclient.
This commit is contained in:
parent
942d8412c4
commit
76fe7d4eba
4 changed files with 15 additions and 2 deletions
|
@ -25,11 +25,14 @@
|
|||
<h3>Public rooms</h3>
|
||||
|
||||
<div class="public_rooms" ng-repeat="room in public_rooms | orderBy:'room_display_name'">
|
||||
<div>
|
||||
<div class="publicRoomEntry">
|
||||
<a href="#/room/{{ room.room_alias ? room.room_alias : room.room_id }}"
|
||||
ng-class="room.room_display_name.toLowerCase().indexOf('#matrix:') === 0 ? 'roomHighlight' : ''">
|
||||
{{ room.room_display_name }}
|
||||
</a>
|
||||
<div ng-show="'num_joined_members' in room">
|
||||
{{ room.num_joined_members }} {{ room.num_joined_members == 1 ? 'user' : 'users' }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue