Mercurial > libervia-backend
comparison sat/plugins/plugin_exp_invitation_pubsub.py @ 3584:edc79cefe968
plugin XEP-0060: `getItem(s)`, `publish` and `(un)subscribe` are now coroutines
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 30 Jun 2021 16:19:14 +0200 |
parents | 12dc234f698c |
children | 26c3e1bc7fb7 |
comparison
equal
deleted
inserted
replaced
3583:16ade4ad63f3 | 3584:edc79cefe968 |
---|---|
162 creator = extra.pop("creator", False) | 162 creator = extra.pop("creator", False) |
163 element = extra.pop("element", None) | 163 element = extra.pop("element", None) |
164 if not name: | 164 if not name: |
165 name = extra.pop("name", "") | 165 name = extra.pop("name", "") |
166 | 166 |
167 return self.host.plugins['LIST_INTEREST'].registerPubsub( | 167 return await self.host.plugins['LIST_INTEREST'].registerPubsub( |
168 client, namespace, service, node, item_id, creator, | 168 client, namespace, service, node, item_id, creator, |
169 name, element, extra) | 169 name, element, extra) |