comparison libervia/backend/plugins/plugin_xep_0444.py @ 4163:3b3cd9453d9b

plugin XEP-0308: implement Last Message Correction
author Goffi <goffi@goffi.org>
date Tue, 28 Nov 2023 17:38:31 +0100
parents 04cdcb3fd713
children 5d2de6c1156d
comparison
equal deleted inserted replaced
4162:98687eaa6a09 4163:3b3cd9453d9b
55 55
56 class XEP_0444: 56 class XEP_0444:
57 # TODO: implement and use occupant-ID (XEP-0421), and check sender (see 57 # TODO: implement and use occupant-ID (XEP-0421), and check sender (see
58 # https://xmpp.org/extensions/xep-0444.html#acceptable-reactions). 58 # https://xmpp.org/extensions/xep-0444.html#acceptable-reactions).
59 def __init__(self, host): 59 def __init__(self, host):
60 log.info(_("Message Reactions initialization")) 60 log.info(f"plugin {PLUGIN_INFO[C.PI_NAME]!r} initialization")
61 host.register_namespace("reactions", NS_REACTIONS) 61 host.register_namespace("reactions", NS_REACTIONS)
62 self.host = host 62 self.host = host
63 self._m = host.plugins["XEP-0045"] 63 self._m = host.plugins["XEP-0045"]
64 self._h = host.plugins["XEP-0334"] 64 self._h = host.plugins["XEP-0334"]
65 host.bridge.add_method( 65 host.bridge.add_method(