Mercurial > libervia-backend
comparison libervia/backend/plugins/plugin_xep_0384.py @ 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 | 7c5654c54fed |
children | 15482dc0b5d1 |
comparison
equal
deleted
inserted
replaced
4149:c36295487082 | 4150:26534d959d2d |
---|---|
1594 sat.trigger.add("send", self.__send_trigger, priority=0) | 1594 sat.trigger.add("send", self.__send_trigger, priority=0) |
1595 # TODO: Add new triggers here for freshly received and about-to-be-sent stanzas, | 1595 # TODO: Add new triggers here for freshly received and about-to-be-sent stanzas, |
1596 # including IQs. | 1596 # including IQs. |
1597 | 1597 |
1598 # Give twomemo a (slightly) higher priority than oldmemo | 1598 # Give twomemo a (slightly) higher priority than oldmemo |
1599 sat.register_encryption_plugin(self, "TWOMEMO", twomemo.twomemo.NAMESPACE, 101) | 1599 sat.register_encryption_plugin(self, "OMEMO", twomemo.twomemo.NAMESPACE, 101) |
1600 sat.register_encryption_plugin(self, "OLDMEMO", oldmemo.oldmemo.NAMESPACE, 100) | 1600 sat.register_encryption_plugin( |
1601 self, "OMEMO_legacy", oldmemo.oldmemo.NAMESPACE, 100 | |
1602 ) | |
1601 | 1603 |
1602 xep_0163 = cast(XEP_0163, sat.plugins["XEP-0163"]) | 1604 xep_0163 = cast(XEP_0163, sat.plugins["XEP-0163"]) |
1603 xep_0163.add_pep_event( | 1605 xep_0163.add_pep_event( |
1604 "TWOMEMO_DEVICES", | 1606 "TWOMEMO_DEVICES", |
1605 TWOMEMO_DEVICE_LIST_NODE, | 1607 TWOMEMO_DEVICE_LIST_NODE, |