Join in a group from an invite code.
When the group requires admin approval (membershipApprovalMode: true), the method returns { id, pendingApproval: true } instead of throwing UnexpectedJoinGroupViaInviteResponse (issues #2221 / #2746).
membershipApprovalMode: true
{ id, pendingApproval: true }
UnexpectedJoinGroupViaInviteResponse
const result = await WPP.group.join('abcde....');if (result.pendingApproval) { console.log('Request sent — waiting for admin approval');} Copy
const result = await WPP.group.join('abcde....');if (result.pendingApproval) { console.log('Request sent — waiting for admin approval');}
Join in a group from an invite code.
When the group requires admin approval (
membershipApprovalMode: true), the method returns{ id, pendingApproval: true }instead of throwingUnexpectedJoinGroupViaInviteResponse(issues #2221 / #2746).