ok, it wort for aproval
Can you tell me correct event and conditions for open group and invite?
event same - then user join group (open - then join, approval - after aprove, invite - after accept invite)
and will be conflict in the events then invite.
so i see next routes:
open group:
user press join -> he added to group as normal user (this event)
user resive invite -> user accetp invite -> he added to group as normal user (this event)
aproval group :
user press join -> he added as pending user -> owner aprove him -> he added to group as normal user (this event)
user resive invite -> user accetp invite -> he added as pending user -> owner aprove him -> he added to group as normal user (this event - work gj_onAfterUpdateUser with status conditions)
invite group:
user resive invite -> user accetp invite -> he added to group as normal user (this event)
Also i need evet then user leave group - (itself or deleted by owner/admin)
i need know - user id (i take it in [user_id]) and GJ group id (now i take it in [var1_group])