Skip to content
Snippets Groups Projects
Commit 16f55d42 authored by Kegan Dougal's avatar Kegan Dougal
Browse files

webclient SYWEB-3 : Public rooms are bold. Can't think of a nicer way which...

webclient SYWEB-3 : Public rooms are bold. Can't think of a nicer way which doesn't clutter the recents list.
parent 246f5d2e
No related branches found
No related tags found
No related merge requests found
...@@ -603,6 +603,10 @@ a:active { color: #000; } ...@@ -603,6 +603,10 @@ a:active { color: #000; }
width: auto; width: auto;
} }
.recentsPublicRoom {
font-weight: bold;
}
.recentsRoomSummaryUsersCount, .recentsRoomSummaryTS { .recentsRoomSummaryUsersCount, .recentsRoomSummaryTS {
color: #888; color: #888;
font-size: 12px; font-size: 12px;
......
...@@ -511,6 +511,17 @@ function(matrixService, $rootScope, $q, $timeout, mPresence) { ...@@ -511,6 +511,17 @@ function(matrixService, $rootScope, $q, $timeout, mPresence) {
member = room.members[user_id]; member = room.members[user_id];
} }
return member; return member;
},
setRoomVisibility: function(room_id, visible) {
if (!visible) {
return;
}
var room = $rootScope.events.rooms[room_id];
if (room) {
room.visibility = visible;
}
} }
}; };
}]); }]);
...@@ -120,6 +120,8 @@ angular.module('eventStreamService', []) ...@@ -120,6 +120,8 @@ angular.module('eventStreamService', [])
if ("state" in room) { if ("state" in room) {
eventHandlerService.handleEvents(room.state, false, true); eventHandlerService.handleEvents(room.state, false, true);
} }
eventHandlerService.setRoomVisibility(room.room_id, room.visibility);
} }
var presence = response.data.presence; var presence = response.data.presence;
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
class ="recentsRoom" class ="recentsRoom"
ng-class="{'recentsRoomSelected': (room.room_id === recentsSelectedRoomID)}"> ng-class="{'recentsRoomSelected': (room.room_id === recentsSelectedRoomID)}">
<tr> <tr>
<td class="recentsRoomName"> <td ng-class="room.visibility == 'public' ? 'recentsRoomName recentsPublicRoom' : 'recentsRoomName'">
{{ room.room_id | mRoomName }} {{ room.room_id | mRoomName }}
</td> </td>
<td class="recentsRoomSummaryUsersCount"> <td class="recentsRoomSummaryUsersCount">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment