Add recents-service to store shared state between recents-controllers.

Remove the selectedRoomId from rootScope and instead store it in
recents-service. Add a broadcast to notify listeners (recents-controller)
to updates of this.
This commit is contained in:
Kegan Dougal 2014-11-12 14:55:57 +00:00
parent e24d5cb97d
commit 96cd467cfa
5 changed files with 65 additions and 9 deletions

View file

@ -31,6 +31,7 @@ var matrixWebClient = angular.module('matrixWebClient', [
'eventStreamService',
'eventHandlerService',
'notificationService',
'recentsService',
'modelService',
'infinite-scroll',
'ui.bootstrap',