diff sat/plugins/plugin_sec_aesgcm.py @ 3196:adf1aeaa0d37

core (constants): renamed `MESS_KEY_MEDIA_TYPE` to `MESS_KEY_ATTACHMENTS_MEDIA_TYPE`
author Goffi <goffi@goffi.org>
date Sat, 29 Feb 2020 16:55:22 +0100
parents 84b0c8b4dee0
children 2c0628f3927e
line wrap: on
line diff
--- a/sat/plugins/plugin_sec_aesgcm.py	Fri Feb 28 18:10:58 2020 +0100
+++ b/sat/plugins/plugin_sec_aesgcm.py	Sat Feb 29 16:55:22 2020 +0100
@@ -236,7 +236,7 @@
                     }
                     media_type = mimetypes.guess_type(path, strict=False)[0]
                     if media_type is not None:
-                        attachment[C.MESS_KEY_MEDIA_TYPE] = media_type
+                        attachment[C.MESS_KEY_ATTACHMENTS_MEDIA_TYPE] = media_type
 
                     if mess_encrypted:
                         # we don't add the encrypted flag if the message itself is not