Skip to content

Commit

Permalink
Update uid if no contact in group.
Browse files Browse the repository at this point in the history
  • Loading branch information
irgendwie committed Mar 19, 2016
1 parent 5778c3b commit db091e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/components/contactList/contactList_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ app.controller('contactlistCtrl', function($scope, $filter, $route, $routeParams
gid: $routeParams.gid,
uid: ctrl.contactList[0].uid()
});
} else {
$route.updateParams({
gid: $routeParams.gid,
uid: undefined
});
}
unbindWatch(); // unbind as we only want one update
});
Expand Down

0 comments on commit db091e4

Please sign in to comment.