Update plugins to use session_bind handler for disco, and use plugin_end
This commit is contained in:
@@ -48,6 +48,13 @@ class XEP_0184(BasePlugin):
|
||||
StanzaPath('message/request_receipt'),
|
||||
self._handle_receipt_request))
|
||||
|
||||
def plugin_end(self):
|
||||
self.xmpp['xep_0030'].del_feature('urn:xmpp:receipts')
|
||||
self.xmpp.del_filter('out', self._filter_add_receipt_request)
|
||||
self.xmpp.remove_handler('Message Receipt')
|
||||
self.xmpp.remove_handler('Message Receipt Request')
|
||||
|
||||
def session_bind(self, jid):
|
||||
self.xmpp['xep_0030'].add_feature('urn:xmpp:receipts')
|
||||
|
||||
def ack(self, msg):
|
||||
|
||||
Reference in New Issue
Block a user