diff sat/plugins/plugin_misc_file.py @ 4042:877145b4ba01

core: don't use `meta_` prefix anymore for `action_extra` in `action_new` signal.
author Goffi <goffi@goffi.org>
date Mon, 15 May 2023 16:20:50 +0200
parents 524856bd7b19
children
line wrap: on
line diff
--- a/sat/plugins/plugin_misc_file.py	Mon May 15 16:20:45 2023 +0200
+++ b/sat/plugins/plugin_misc_file.py	Mon May 15 16:20:50 2023 +0200
@@ -271,9 +271,9 @@
                 _(CONFIRM_OVERWRITE).format(file_path),
                 _(CONFIRM_OVERWRITE_TITLE),
                 action_extra={
-                    "meta_from_jid": peer_jid.full(),
-                    "meta_type": C.META_TYPE_OVERWRITE,
-                    "meta_progress_id": file_data[PROGRESS_ID_KEY],
+                    "from_jid": peer_jid.full(),
+                    "type": C.META_TYPE_OVERWRITE,
+                    "progress_id": file_data[PROGRESS_ID_KEY],
                 },
                 security_limit=SECURITY_LIMIT,
                 profile=client.profile,
@@ -331,9 +331,9 @@
             type_=C.XMLUI_DIALOG_FILE,
             options={C.XMLUI_DATA_FILETYPE: C.XMLUI_DATA_FILETYPE_DIR},
             action_extra={
-                "meta_from_jid": peer_jid.full(),
-                "meta_type": C.META_TYPE_FILE,
-                "meta_progress_id": file_data[PROGRESS_ID_KEY],
+                "from_jid": peer_jid.full(),
+                "type": C.META_TYPE_FILE,
+                "progress_id": file_data[PROGRESS_ID_KEY],
             },
             security_limit=SECURITY_LIMIT,
             profile=client.profile,