comparison sat/plugins/plugin_xep_0277.py @ 3341:13b91b7280bc

plugin XEP-0277: fixed item2mbdata call
author Goffi <goffi@goffi.org>
date Sat, 15 Aug 2020 20:29:07 +0200
parents d49607e3a066
children be6d91572633
comparison
equal deleted inserted replaced
3340:2ad14b834730 3341:13b91b7280bc
189 ) 189 )
190 190
191 for item in itemsEvent.items: 191 for item in itemsEvent.items:
192 if item.name == C.PS_ITEM: 192 if item.name == C.PS_ITEM:
193 # FIXME: service and node should be used here 193 # FIXME: service and node should be used here
194 self.item2mbdata(client, item).addCallbacks( 194 self.item2mbdata(client, item, None, None).addCallbacks(
195 manageItem, lambda failure: None, (C.PS_PUBLISH,) 195 manageItem, lambda failure: None, (C.PS_PUBLISH,)
196 ) 196 )
197 elif item.name == C.PS_RETRACT: 197 elif item.name == C.PS_RETRACT:
198 manageItem({"id": item["id"]}, C.PS_RETRACT) 198 manageItem({"id": item["id"]}, C.PS_RETRACT)
199 else: 199 else: