mirror of
https://github.com/chatmail/core.git
synced 2026-09-22 13:01:21 +03:00
refactor: remove pre_encrypt_mime_hook
It is only used in a single test and the test is more reliable by having a blob .eml that will not be accidentally modified by mimefactory changes.
This commit is contained in:
@@ -1168,12 +1168,6 @@ impl MimeFactory {
|
||||
_ => None,
|
||||
};
|
||||
|
||||
if context.get_config_bool(Config::TestHooks).await?
|
||||
&& let Some(hook) = &*context.pre_encrypt_mime_hook.lock()
|
||||
{
|
||||
message = hook(context, message);
|
||||
}
|
||||
|
||||
let encrypted = if let Some(shared_secret) = shared_secret {
|
||||
let sign = true;
|
||||
encrypt_helper
|
||||
|
||||
Reference in New Issue
Block a user