mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-14 05:25:24 -04:00
SYWEB-57: Highlight rooms which have had their bingers go off in blue.
Priority is the same as xchat so selected > blue > red.
This commit is contained in:
parent
99c445a6d6
commit
960b28c90a
5 changed files with 50 additions and 7 deletions
|
@ -38,6 +38,12 @@ angular.module('RecentsController', ['matrixService', 'matrixFilter'])
|
|||
$scope.unreadMessages = recentsService.getUnreadMessages();
|
||||
});
|
||||
|
||||
// track the list of unread BING messages: the html will use this
|
||||
$scope.unreadBings = recentsService.getUnreadBingMessages();
|
||||
$scope.$on(recentsService.BROADCAST_UNREAD_BING_MESSAGES, function(ngEvent, room_id, event) {
|
||||
$scope.unreadBings = recentsService.getUnreadBingMessages();
|
||||
});
|
||||
|
||||
$scope.selectRoom = function(room) {
|
||||
recentsService.markAsRead(room.room_id);
|
||||
$rootScope.goToPage('room/' + (room.room_alias ? room.room_alias : room.room_id) );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue