Goffi
88072e0453
core, frontends: avatar refactoring:
...
/!\ huge commit
Avatar logic has been reworked around the IDENTITY plugin: plugins able to handle avatar
or other identity related metadata (like nicknames) register to IDENTITY plugin in the
same way as for other features like download/upload. Once registered, IDENTITY plugin will
call them when suitable in order of priority, and handle caching.
Methods to manage those metadata from frontend now use serialised data.
For now `avatar` and `nicknames` are handled:
- `avatar` is now a dict with `path` + metadata like `media_type`, instead of just a string
path
- `nicknames` is now a list of nicknames in order of priority. This list is never empty,
and `nicknames[0]` should be the preferred nickname to use by frontends in most cases.
In addition to contact specified nicknames, user set nickname (the one set in roster) is
used in priority when available.
Among the side changes done with this commit, there are:
- a new `contactGet` bridge method to get roster metadata for a single contact
- SatPresenceProtocol.send returns a Deferred to check when it has actually been sent
- memory's methods to handle entities data now use `client` as first argument
- metadata filter can be specified with `getIdentity`
- `getAvatar` and `setAvatar` are now part of the IDENTITY plugin instead of XEP-0054 (and
there signature has changed)
- `isRoom` and `getBareOrFull` are now part of XEP-0045 plugin
- jp avatar/get command uses `xdg-open` first when available for `--show` flag
- `--no-cache` has been added to jp avatar/get and identity/get
- jp identity/set has been simplified, explicit options (`--nickname` only for now) are
used instead of `--field`. `--field` may come back in the future if necessary for extra
data.
- QuickContactList `SetContact` now handle None as a value, and doesn't use it to delete the
metadata anymore
- improved cache handling for `metadata` and `nicknames` in quick frontend
- new `default` argument in QuickContactList `getCache`
2020-04-14 21:00:33 +02:00
..
__init__.py
core, XEP-0315: move XML element handling to sat_tmp:
2019-01-16 09:18:16 +01:00
plugin_adhoc_dbus.py
core: fixed findByFeatures:
2020-01-29 12:38:48 +01:00
plugin_blog_import.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_blog_import_dokuwiki.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_blog_import_dotclear.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_comp_file_sharing.py
dates update
2020-01-29 09:50:54 +01:00
plugin_comp_file_sharing_management.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_dbg_manhole.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_exp_command_export.py
core: renamed "MessageReceived" trigger to "messageReceived" for consistency.
2020-02-18 18:13:19 +01:00
plugin_exp_events.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_exp_invitation.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_exp_invitation_file.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_exp_jingle_stream.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_exp_lang_detect.py
core: renamed "MessageReceived" trigger to "messageReceived" for consistency.
2020-02-18 18:13:19 +01:00
plugin_exp_list_of_interest.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_exp_parrot.py
core, frontends: avatar refactoring:
2020-04-14 21:00:33 +02:00
plugin_exp_pubsub_admin.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_exp_pubsub_hook.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_exp_pubsub_schema.py
core, frontends: avatar refactoring:
2020-04-14 21:00:33 +02:00
plugin_import.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_merge_req_mercurial.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_misc_account.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_misc_android.py
plugin android: use certifi SSL root certicates
2020-04-01 22:28:50 +02:00
plugin_misc_attach.py
plugin attach: handle large images resizing:
2020-03-22 14:04:16 +01:00
plugin_misc_debug.py
plugin manhole: added "C" to namespace
2020-01-26 18:08:10 +01:00
plugin_misc_download.py
plugin download: clean unfinished files and re-raise exception in case of download error
2020-03-06 18:19:03 +01:00
plugin_misc_email_invitation.py
core (memory/persistent): fixed "items", added "all" + "adel" to LazyPersistentBinaryDict:
2020-04-14 20:36:24 +02:00
plugin_misc_extra_pep.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_misc_file.py
plugin attach, XEP-0363: progress id can now be specified:
2020-02-23 17:48:26 +01:00
plugin_misc_forums.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_misc_groupblog.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_misc_identity.py
core, frontends: avatar refactoring:
2020-04-14 21:00:33 +02:00
plugin_misc_ip.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_misc_merge_requests.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_misc_nat-port.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_misc_quiz.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_misc_radiocol.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_misc_register_account.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_misc_room_game.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_misc_static_blog.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_misc_tarot.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_misc_text_commands.py
plugin text commands: handles coroutines + better command parsing:
2020-03-13 17:50:08 +01:00
plugin_misc_text_syntaxes.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_misc_tickets.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_misc_upload.py
plugin attach, XEP-0363: progress id can now be specified:
2020-02-23 17:48:26 +01:00
plugin_misc_uri_finder.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_misc_watched.py
core, frontends: avatar refactoring:
2020-04-14 21:00:33 +02:00
plugin_misc_welcome.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_misc_xmllog.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_sec_aesgcm.py
plugin aesgcm: wait for each splitted message to be sent before sending next one
2020-03-22 14:01:47 +01:00
plugin_sec_otr.py
core (memory/encryption): automatic start encryption if peer send encrypted message:
2020-03-23 17:52:18 +01:00
plugin_syntax_wiki_dotclear.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_tickets_import.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_tickets_import_bugzilla.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_tmp_directory_subscription.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0020.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0033.py
core: renamed "MessageReceived" trigger to "messageReceived" for consistency.
2020-02-18 18:13:19 +01:00
plugin_xep_0045.py
core, frontends: avatar refactoring:
2020-04-14 21:00:33 +02:00
plugin_xep_0047.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0048.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0049.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0050.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0054.py
core, frontends: avatar refactoring:
2020-04-14 21:00:33 +02:00
plugin_xep_0055.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0059.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0060.py
plugin XEP-0060: async sendItems + precondition-not-met policy:
2020-03-11 19:15:48 +01:00
plugin_xep_0065.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0070.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0071.py
core: renamed "MessageReceived" trigger to "messageReceived" for consistency.
2020-02-18 18:13:19 +01:00
plugin_xep_0077.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0085.py
core, frontends: avatar refactoring:
2020-04-14 21:00:33 +02:00
plugin_xep_0092.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0095.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0096.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0100.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0106.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0115.py
core, frontends: avatar refactoring:
2020-04-14 21:00:33 +02:00
plugin_xep_0163.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0166.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0184.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0198.py
plugin XEP-0198: minor log formatting
2020-01-29 11:19:47 +01:00
plugin_xep_0199.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0203.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0231.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0234.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0249.py
core: renamed "MessageReceived" trigger to "messageReceived" for consistency.
2020-02-18 18:13:19 +01:00
plugin_xep_0260.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0261.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0264.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0277.py
bridge: messageSend's extra is now serialised
2020-02-21 12:17:38 +01:00
plugin_xep_0280.py
core: renamed "MessageReceived" trigger to "messageReceived" for consistency.
2020-02-18 18:13:19 +01:00
plugin_xep_0297.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0300.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0313.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0329.py
dates update
2020-01-29 09:50:54 +01:00
plugin_xep_0334.py
core: renamed "MessageReceived" trigger to "messageReceived" for consistency.
2020-02-18 18:13:19 +01:00
plugin_xep_0352.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0359.py
fixed shebangs
2020-01-29 10:07:00 +01:00
plugin_xep_0363.py
plugin attach: handle large images resizing:
2020-03-22 14:04:16 +01:00
plugin_xep_0380.py
core: renamed "MessageReceived" trigger to "messageReceived" for consistency.
2020-02-18 18:13:19 +01:00
plugin_xep_0384.py
plugin XEP-0384: fixed /omemo_reset + device ID type:
2020-03-30 19:59:17 +02:00