Plugin XEP-0384: rename the pun names "OLDMEMO" and "TWOMEMO" to "OMEMO_legacy" and "OMEMO" for clarity.

This commit is contained in:
Goffi 2023-11-22 14:45:26 +01:00
commit 483e63d709

View file

@ -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(