changeset 4150:26534d959d2d

Plugin XEP-0384: rename the pun names "OLDMEMO" and "TWOMEMO" to "OMEMO_legacy" and "OMEMO" for clarity.
author Goffi <goffi@goffi.org>
date Wed, 22 Nov 2023 14:45:26 +0100
parents c36295487082
children 18026ce0819c
files libervia/backend/plugins/plugin_xep_0384.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_xep_0384.py	Wed Nov 22 14:31:05 2023 +0100
+++ b/libervia/backend/plugins/plugin_xep_0384.py	Wed Nov 22 14:45:26 2023 +0100
@@ -1596,8 +1596,10 @@
         # 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(