Still a lot of redundancy.. you can do the following to solve it even more:

if(invite.getSender().getId().equals(Secure.getUser().getId())) {

Place all the other ifs here

}

Also having the same reject button twice can be fixed.