mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
Fixing #5706 filtering system messages results in errors.
This commit is contained in:
@@ -224,6 +224,9 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Shared', 'Groups', '
|
||||
if ($scope.query === undefined || $scope.query === null) {
|
||||
return false;
|
||||
}
|
||||
if (msg.username == undefined) {
|
||||
return false;
|
||||
}
|
||||
return msg.user.indexOf($scope.query.text) == 0; // query should be prefix of item.user
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user