Handle call events in the recents view as well to get consistency with what it displays when refreshed.

paul/schema_breaking_changes
David Baker 2014-09-01 15:53:07 +01:00
parent 4e14e38bd5
commit fa6b3490e2
1 changed files with 5 additions and 0 deletions

View File

@ -43,6 +43,11 @@ angular.module('RecentsController', ['matrixService', 'eventHandlerService'])
$scope.rooms[event.room_id].lastMsg = event;
}
});
$scope.$on(eventHandlerService.CALL_EVENT, function(ngEvent, event, isLive) {
if (isLive) {
$scope.rooms[event.room_id].lastMsg = event;
}
});
};