Fixed #71. update_invite to accept_invite; fixed action required.

This fix includes (1) rename the function and (2) remove the mistaken code introduced for ticket #68.