Skip to content
Snippets Groups Projects
Commit fa6b3490 authored by David Baker's avatar David Baker
Browse files

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

Handle call events in the recents view as well to get consistency with what it displays when refreshed.
parent 4e14e38b
Branches
Tags
No related merge requests found
...@@ -43,6 +43,11 @@ angular.module('RecentsController', ['matrixService', 'eventHandlerService']) ...@@ -43,6 +43,11 @@ angular.module('RecentsController', ['matrixService', 'eventHandlerService'])
$scope.rooms[event.room_id].lastMsg = event; $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;
}
});
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment