comparison src/plugins/plugin_xep_0184.py @ 2129:6a66c8c5a567

core: replaced calls to client.xmlstream.send by client.send which is the right method to use. client.xmlstream should not be used directly
author Goffi <goffi@goffi.org>
date Sat, 04 Feb 2017 17:59:13 +0100
parents ad88808591ef
children f79935f41125
comparison
equal deleted inserted replaced
2128:aa94f33fd2ad 2129:6a66c8c5a567
126 received_elt_ret = domish.Element((NS_MESSAGE_DELIVERY_RECEIPTS, 'received')) 126 received_elt_ret = domish.Element((NS_MESSAGE_DELIVERY_RECEIPTS, 'received'))
127 received_elt_ret["id"] = msg_elt["id"] 127 received_elt_ret["id"] = msg_elt["id"]
128 128
129 msg_result_elt = xmlstream.toResponse(msg_elt, 'result') 129 msg_result_elt = xmlstream.toResponse(msg_elt, 'result')
130 msg_result_elt.addChild(received_elt_ret) 130 msg_result_elt.addChild(received_elt_ret)
131 client.xmlstream.send(msg_result_elt) 131 client.send(msg_result_elt)
132 132
133 def onMessageDeliveryReceiptsReceived(self, msg_elt, client): 133 def onMessageDeliveryReceiptsReceived(self, msg_elt, client):
134 """This method is called on message delivery receipts **received** (XEP-0184 #7) 134 """This method is called on message delivery receipts **received** (XEP-0184 #7)
135 @param msg_elt: message element 135 @param msg_elt: message element
136 @param client: %(doc_client)s""" 136 @param client: %(doc_client)s"""