fixed bug in view pending friends branch

@alloka  @madostar @Nour2610  plz review me