Mercurial > libervia-backend
comparison libervia/backend/plugins/plugin_xep_0234.py @ 4115:0da563780ffc
plugin XEP-0167, XEP-0353: handle ringing:
- add a `jingle_preflight_info` method in the Jingle Application model to handle this kind
of information
- XEP-0353 is calling `jingle_preflight_info` when a `ringing` message is received
- XEP-0167 use this information to send a `ringing` info to frontends
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 16 Aug 2023 18:33:28 +0200 |
parents | bc60875cb3b8 |
children | 5a0bddfa34ac |
comparison
equal
deleted
inserted
replaced
4114:79ec7d7beef3 | 4115:0da563780ffc |
---|---|
461 }, | 461 }, |
462 ) | 462 ) |
463 if accepted: | 463 if accepted: |
464 session["file_accepted"] = True | 464 session["file_accepted"] = True |
465 return accepted | 465 return accepted |
466 | |
467 async def jingle_preflight_info( | |
468 self, | |
469 client: SatXMPPEntity, | |
470 session: dict, | |
471 info_type: str, | |
472 info_data: dict|None = None | |
473 ) -> None: | |
474 pass | |
466 | 475 |
467 async def jingle_preflight_cancel( | 476 async def jingle_preflight_cancel( |
468 self, | 477 self, |
469 client: SatXMPPEntity, | 478 client: SatXMPPEntity, |
470 session: dict, | 479 session: dict, |