From 483e63d7091e26253abbb2ca3c7d962c64c62a64 Mon Sep 17 00:00:00 2001 From: Goffi Date: Wed, 22 Nov 2023 14:45:26 +0100 Subject: [PATCH] Plugin XEP-0384: rename the pun names "OLDMEMO" and "TWOMEMO" to "OMEMO_legacy" and "OMEMO" for clarity. --- libervia/backend/plugins/plugin_xep_0384.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libervia/backend/plugins/plugin_xep_0384.py b/libervia/backend/plugins/plugin_xep_0384.py index c9117504..aa473582 100644 --- a/libervia/backend/plugins/plugin_xep_0384.py +++ b/libervia/backend/plugins/plugin_xep_0384.py @@ -1596,8 +1596,10 @@ class OMEMO: # including IQs. # Give twomemo a (slightly) higher priority than oldmemo - sat.register_encryption_plugin(self, "TWOMEMO", twomemo.twomemo.NAMESPACE, 101) - sat.register_encryption_plugin(self, "OLDMEMO", oldmemo.oldmemo.NAMESPACE, 100) + sat.register_encryption_plugin(self, "OMEMO", twomemo.twomemo.NAMESPACE, 101) + sat.register_encryption_plugin( + self, "OMEMO_legacy", oldmemo.oldmemo.NAMESPACE, 100 + ) xep_0163 = cast(XEP_0163, sat.plugins["XEP-0163"]) xep_0163.add_pep_event(