If possible, use href with room alias in rooms list

This commit is contained in:
Emmanuel ROHEE 2014-08-18 17:14:57 +02:00
parent e5257b21b3
commit cebceb7b9d
1 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@
<div class="rooms" ng-repeat="(rm_id, room) in rooms"> <div class="rooms" ng-repeat="(rm_id, room) in rooms">
<div> <div>
<a href="#/room/{{ rm_id }}" >{{ room.room_alias }}</a> {{room.membership === 'invite' ? ' (invited)' : ''}} <a href="#/room/{{ room.room_alias ? room.room_alias : rm_id }}" >{{ room.room_alias }}</a> {{room.membership === 'invite' ? ' (invited)' : ''}}
</div> </div>
</div> </div>
<br/> <br/>
@ -74,7 +74,7 @@
<div class="public_rooms" ng-repeat="room in public_rooms"> <div class="public_rooms" ng-repeat="room in public_rooms">
<div> <div>
<a href="#/room/{{ room.room_id }}" >{{ room.room_alias }}</a> <a href="#/room/{{ room.room_alias ? room.room_alias : room.room_id }}" >{{ room.room_alias }}</a>
</div> </div>
</div> </div>
<br/> <br/>