FIX: Check for keys presence only for new topics

FIX: Check for keys presence only for new topics

diff --git a/plugin.rb b/plugin.rb
index cc97e80..14a3b8e 100644
--- a/plugin.rb
+++ b/plugin.rb
@@ -214,7 +214,7 @@ after_initialize do
   NewPostManager.add_handler do |manager|
     next if !manager.args[:encrypted_raw]
 
-    if !manager.args[:encrypted_keys]
+    if manager.args[:encrypted_title] && !manager.args[:encrypted_keys]
       result = NewPostResult.new(:created_post, false)
       result.errors.add(:base, I18n.t('encrypt.no_encrypt_keys'))
       next result

GitHub sha: 0ce67fee

There should be a test for that :wink: