Commit graph

4,116 commits

Author SHA1 Message Date
Goffi
d60b79b18f plugin XEP-0167, XEP-0176: transport-info and ICE candidate sending are delayed if session is not active yet 2023-08-21 15:19:45 +02:00
Goffi
09d88cdfe2 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
2023-08-16 18:33:28 +02:00
Goffi
71cfdccb5b plugin XEP-0166: reject session creation is session ID is empty 2023-08-16 18:28:32 +02:00
Goffi
0e6dd6a8de doc (installation): update pipx instruction and remove requirements.txt mention 2023-08-09 00:48:11 +02:00
Goffi
ba6e59d2d1 plugin XEP-0166, XEP-0167, XEP-0234, XEP-0353: call events management to prepare for UI:
- XEP-0166: add `jingle_preflight` and `jingle_preflight_cancel` methods to prepare a
  jingle session, principally used by XEP-0353 to create and cancel a session
- XEP-0167: preflight methods implementation, workflow split in more methods/signals to
  handle UI and call events (e.g.: retract or reject a call)
- XEP-0234: implementation of preflight methods as they are now mandatory
- XEP-0353: handle various events using the new preflight methods

rel 423
2023-08-09 00:07:37 +02:00
Goffi
2457f0f6a1 plugin XEP-0166: jingle_terminate, session handling and reason parsing:
- a new `jingle_terminate` bridge method let frontend terminate a session
- methods to manage a session from another plugin
- methods to parse `<reason>` element from another plugin
- allow session to be created before a first jingle request is received, to prepare for
  `preflight` methods

rel 423
2023-08-08 23:59:24 +02:00
Goffi
5d8334061b tools (common/data_objects): handle messages without body 2023-08-08 23:49:36 +02:00
Goffi
68c47bc78b component AP gateway: fix AP media type in GET and POST requests headers 2023-07-06 11:34:52 +02:00
Goffi
1075e86865 plugin JID Search: JID search plugin, first draft 2023-07-06 11:34:51 +02:00
Goffi
b3659079f5 backend: rename SatRosterProtocol to LiberviaRosterProtocol 2023-06-30 15:11:05 +02:00
Goffi
adfb02505d install: bump minimum python version 2023-06-30 15:10:05 +02:00
Goffi
b1fc474503 compoent AP gateway: add forgotten contant 2023-06-28 14:27:05 +02:00
Goffi
713dda18d3 component AP gateway: fix webfinger content type 2023-06-28 14:24:42 +02:00
Goffi
53ee4011e3 plugin URL preview: URL preview first draft 2023-06-27 15:48:15 +02:00
Goffi
75c8868620 doc (conf): fix version retrieval 2023-06-23 15:19:06 +02:00
Goffi
264d1b8356 cli (debug): fix deprecated method call 2023-06-23 15:18:43 +02:00
Goffi
173519a630 tools (common/template): add filter to get media types:
Add 2 filters to get main type and subtype of media type. Jinja2 and Nunjucks don't handle
slices in the same way (Python way for Jinja2, JS way for Nunjucks), making it difficult
to retrieve main type of a media from media type. Thoses filters work in both cases.
2023-06-22 15:49:06 +02:00
Goffi
fd53fb537e tools (common/data_objects): add attachments in Message 2023-06-22 15:47:17 +02:00
Goffi
ae0402fd75 plugin XEP-0363: fix handling of empty upload_jid in _get_slot 2023-06-22 15:46:42 +02:00
Goffi
b5932fb43e component file sharing: fix method name case:
`render_OPTIONS` is a method inherited from Twisted, name has been put to lowercase
following massive refactoring, resulting in the method not being called anymore. This
patch fixes it.
2023-06-22 15:45:20 +02:00
Goffi
27f4dfee75 plugin XEP-0060: move setting of pubsub_watching to profile_connecting so it's available early 2023-06-12 15:00:59 +02:00
Goffi
bf9db70bee core (memory/sqla_mapping): fix legacy pickled values:
folloing packages refactoring, legacy pickled values could not be unpickled (due to use of
old classes). This temporary workaround fix it, but the right thing to do will be to move
from pickle to JSON at some point.
2023-06-12 14:57:27 +02:00
Goffi
0fa0b3a5f6 component AP gateway: fix handling of XMPP comments authors:
the gateway was supposing that comments where emitted from PEP of author. While this is
the case for most blog posts, it's not for comments. Instead the component is now using
`author_jid` which is retrieved by XEP-0277 plugin, and reject the item if the auhor is
not verified (i.e. if `publisher` attribute is not set by XMPP service).
2023-06-12 14:50:43 +02:00
Goffi
2fa4681929 component AP gateway: fix method retrieval in ap_request:
following recent refactoring to use snake_case, the former method retrieve was broken,
this patch fixes it.
2023-06-12 14:45:13 +02:00
Goffi
1cd7d44e2e core (memory/sqla): fix row to dict conversion in get_files 2023-06-09 12:25:51 +02:00
Goffi
eae0e4958e build: explicitely set packages so doc is not accidentaly included 2023-06-08 21:30:57 +02:00
Goffi
65a49a79e8 cli (event): minor typo 2023-06-08 21:28:40 +02:00
Goffi
fbf72390da tools (common/template): allow use of extra attributes in icon function 2023-06-08 21:28:26 +02:00
Goffi
735822ab74 tools (common/date_utils): update date parsing regex:
the regex `<timestamp> + 30 minutes` was not parsed correctly, this update should fix it.
2023-06-08 21:27:12 +02:00
Goffi
85c1457054 tools (common/data_objects): fix import of Markup following change after Jinja2 version bump 2023-06-08 21:26:09 +02:00
Goffi
edbd8466f3 build: add missing .ini and .yaml files in all build, needed for wheel 2023-06-07 22:31:20 +02:00
Goffi
7b58403a3a plugin app manager: rename sat to libervia 2023-06-07 22:30:28 +02:00
Goffi
620f89f589 tools/common (template): add id argument to _icon_use 2023-06-07 22:26:54 +02:00
Goffi
33b5bb63b7 plugin XEP-0045: fix calls to join 2023-06-07 22:26:17 +02:00
Goffi
918eb05907 build: create a dev env with debugging tools 2023-06-07 22:25:49 +02:00
Goffi
7c6a675435 installation: moved from setup.py to pyproject.toml:
- updated installation to use the now standard `pyproject.toml` instead of legacy
`setup.py`. `setup.py` and other legacy files have been deleted.
- removed outdated README4PACKAGERS
- removed pylintrc which has not been correctly reviewed. Linter conf should go to
  `pyproject.toml` now.
- [hatch](https://hatch.pypa.io) is now used as main building tool. However, thanks to the
use of standards, other tools can be used too.
- update .hgignore
- several dependencies version bump, with code update to adapt to changes.
2023-06-06 16:45:16 +02:00
Goffi
a8a4694a03 doc: README rewrite:
- markdown is now used instead of plain text
- updated text
- contributors and credits have been moved to ACKNOWLEDGMENTS.md (but they are outdated)
2023-06-06 13:42:00 +02:00
Goffi
b7618e12f7 version: use standard Python's dev0 instead of Libervia specific D for dev version 2023-06-06 12:41:53 +02:00
Goffi
4678449f76 refactoring: rename sat_configure to libervia_configure 2023-06-02 18:21:15 +02:00
Goffi
7e3834a5e9 refactoring: fix names in doc following modules hierarchy refactoring 2023-06-02 17:38:37 +02:00
Goffi
ac172ec744 refactoring: rename libervia.frontends.primitivus to libervia.tui 2023-06-02 16:25:25 +02:00
Goffi
fd16770c19 refactoring: rename libervia.frontends.jp to libervia.cli 2023-06-02 14:54:26 +02:00
Goffi
4ab9bd7bc8 refactoring: rename sat_frontends to libervia.frontends 2023-06-02 14:12:38 +02:00
Goffi
91f6b77b3d refactoring: rename core.sat_main to core.main 2023-06-02 12:59:21 +02:00
Goffi
af1c203450 refactoring: rename SAT class to LiberviaBackend 2023-06-02 11:55:48 +02:00
Goffi
d2685ba11b refactoring: renamed sat package to libervia.backend 2023-06-02 11:49:51 +02:00
Goffi
a15648d682 plugin XEP-0167: method to end a call, and corresponding signal:
rel 422
2023-06-01 21:37:34 +02:00
Goffi
f92c1f2ac6 tests (unit): Skip XEP-0373 test if gpg can't be imported 2023-06-01 21:37:34 +02:00
Goffi
c92762858f tests (units): tests for plugin XEP-0339:
fix 439
2023-06-01 21:37:31 +02:00
Goffi
678cb341b6 plugin XEP-0339: "Source-Specific Media Attributes in Jingle" implementation:
rel 439
2023-06-01 20:53:33 +02:00