summaryrefslogtreecommitdiff
path: root/poezio/plugin_e2ee.py
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2019-07-02 00:55:41 +0200
committerMaxime “pep” Buquet <pep@bouah.net>2019-07-02 00:55:41 +0200
commit12e1c0374cd71ef262b3dceb48650ea70fd8b816 (patch)
treeca9d78d01d1db1188bccf1efb90894b7dd4a2076 /poezio/plugin_e2ee.py
parent0c54e834ff6c622c3fc54e657243d9b085ad4e02 (diff)
downloadpoezio-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>
Diffstat (limited to 'poezio/plugin_e2ee.py')
-rw-r--r--poezio/plugin_e2ee.py5
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