mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 08:14:48 -04:00
Handle "m.room.create" in order to inform controllers about new rooms
This commit is contained in:
parent
aa337f588c
commit
d5da6b0cef
3 changed files with 29 additions and 5 deletions
|
@ -47,6 +47,11 @@ angular.module('RecentsController', ['matrixService', 'eventHandlerService'])
|
|||
$scope.rooms[event.room_id].lastMsg = event;
|
||||
}
|
||||
});
|
||||
$scope.$on(eventHandlerService.ROOM_CREATE_EVENT, function(ngEvent, event, isLive) {
|
||||
if (isLive) {
|
||||
$scope.rooms[event.room_id] = event;
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue