DEV: DiscourseEvents fired when users are added/removed from groups (#9522)

DEV: DiscourseEvents fired when users are added/removed from groups (#9522)

diff --git a/app/services/group_action_logger.rb b/app/services/group_action_logger.rb
index 01620a7..4f38fd5 100644
--- a/app/services/group_action_logger.rb
+++ b/app/services/group_action_logger.rb
@@ -28,6 +28,7 @@ class GroupActionLogger
   def log_add_user_to_group(target_user)
     (target_user == @acting_user && @group.public_admission) || can_edit?
 
+    DiscourseEvent.trigger(:user_added_to_group, target_user, @group)
     GroupHistory.create!(default_params.merge(
       action: GroupHistory.actions[:add_user_to_group],
       target_user: target_user
@@ -37,6 +38,7 @@ class GroupActionLogger
   def log_remove_user_from_group(target_user)
     (target_user == @acting_user && @group.public_exit) || can_edit?
 
+    DiscourseEvent.trigger(:user_removed_from_group, target_user, @group)
     GroupHistory.create!(default_params.merge(
       action: GroupHistory.actions[:remove_user_from_group],
       target_user: target_user

GitHub sha: 54ec9f70

This commit appears in #9522 which was approved by eviltrout. It was merged by SamSaffron.

I have to revert this cause we already had a trigger here:

So we need to clean it up so stuff is consistent.