diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2019-07-02 00:55:41 +0200 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2019-07-02 00:55:41 +0200 |
commit | 12e1c0374cd71ef262b3dceb48650ea70fd8b816 (patch) | |
tree | ca9d78d01d1db1188bccf1efb90894b7dd4a2076 | |
parent | 0c54e834ff6c622c3fc54e657243d9b085ad4e02 (diff) | |
download | poezio-12e1c0374cd71ef262b3dceb48650ea70fd8b816.tar.gz poezio-12e1c0374cd71ef262b3dceb48650ea70fd8b816.tar.bz2 poezio-12e1c0374cd71ef262b3dceb48650ea70fd8b816.tar.xz poezio-12e1c0374cd71ef262b3dceb48650ea70fd8b816.zip |
poezio/plugin_e2ee: Add TODO in decryption method to match more than EME messages
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r-- | poezio/plugin_e2ee.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/poezio/plugin_e2ee.py b/poezio/plugin_e2ee.py index 75508bc9..8b103cb2 100644 --- a/poezio/plugin_e2ee.py +++ b/poezio/plugin_e2ee.py @@ -179,6 +179,11 @@ class E2EEPlugin(BasePlugin): return jid in self._enabled_tabs and self._enabled_tabs[jid] == self.encrypt def _decrypt(self, message: Message, tab: ChatTabs) -> None: + + # TODO: Not all encrypted messages will contain EME. EME is typically + # used only when a message contains `<body/>`. Find a way to have the + # plugin register an element/ns to check for etc. + if message.xml.find('{%s}%s' % (EME_NS, EME_TAG)) is None: return None |