diff options
author | Kegan Dougal <kegan@matrix.org> | 2014-08-15 11:31:13 +0100 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2014-08-15 14:06:56 +0100 |
commit | 5dbceaf5a40a7e90a4aca1a1612fa9ea13290a02 (patch) | |
tree | afe6432266ad80f95b31390370df5278c931bf76 /webclient/app.js | |
parent | Added event stream service which neatly blobs together requests / state for t... (diff) | |
download | synapse-5dbceaf5a40a7e90a4aca1a1612fa9ea13290a02.tar.xz |
Added event handler service which.. handles events. More specifically, it $broadcasts events depending on their type, and does processing on events (shuffling keys, adding events to $rootScope so displays will automatically update, sending delivery receipts, and so on). Some of this logic was previously contained in the RoomController, which fails the moment you add >1 room into the mix, hence requiring a Service to handle events, rather than having each individual controller maintain their part of the world.
Diffstat (limited to 'webclient/app.js')
-rw-r--r-- | webclient/app.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/webclient/app.js b/webclient/app.js index 547431d9b2..bc78eb9d17 100644 --- a/webclient/app.js +++ b/webclient/app.js @@ -21,7 +21,8 @@ var matrixWebClient = angular.module('matrixWebClient', [ 'RoomController', 'RoomsController', 'matrixService', - 'eventStreamService' + 'eventStreamService', + 'eventHandlerService' ]); matrixWebClient.config(['$routeProvider', '$provide', '$httpProvider', |