avoid broadcasting error messages

This commit is contained in:
Davide Alberani 2017-04-24 14:45:23 +02:00
parent 80b4c595a0
commit 26aaa5b051

View file

@ -292,7 +292,7 @@ eventManControllers.controller('EventTicketsCtrl', ['$scope', '$state', 'Event',
$log.debug('do not process our own message');
return false;
}
if (data.error && data.message) {
if (data.error && data.message && $scope.info.user.username == data.username) {
if (data.searchFor) {
$scope.query = angular.copy(data.searchFor);
}