DEV: Add event when user enables encrypt

DEV: Add event when user enables encrypt

diff --git a/app/controllers/encrypt_controller.rb b/app/controllers/encrypt_controller.rb
index abaea01..1fe71e1 100644
--- a/app/controllers/encrypt_controller.rb
+++ b/app/controllers/encrypt_controller.rb
@@ -44,6 +44,8 @@ class DiscourseEncrypt::EncryptController < ApplicationController
     current_user.user_encryption_key.save
     current_user.publish_identity
 
+    DiscourseEvent.trigger(:enabled_encrypt, current_user) if !old_identity
+
     render json: success_json
   end
 

GitHub sha: 7ea3b5b7