From 96d229abdb078adc1fef2df3868fe6aa7206653b Mon Sep 17 00:00:00 2001 From: Goffi Date: Fri, 19 Feb 2021 15:53:27 +0100 Subject: [PATCH] plugin XEP-0060: renamed `psRetractItem(s)` to `psItem(s)Retract` for consistency. --- sat/plugins/plugin_xep_0060.py | 4 ++-- sat_frontends/jp/cmd_pubsub.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sat/plugins/plugin_xep_0060.py b/sat/plugins/plugin_xep_0060.py index 944eab80..af19a009 100644 --- a/sat/plugins/plugin_xep_0060.py +++ b/sat/plugins/plugin_xep_0060.py @@ -214,7 +214,7 @@ class XEP_0060(object): async_=True, ) host.bridge.addMethod( - "psRetractItem", + "psItemRetract", ".plugin", in_sign="sssbs", out_sign="", @@ -222,7 +222,7 @@ class XEP_0060(object): async_=True, ) host.bridge.addMethod( - "psRetractItems", + "psItemsRetract", ".plugin", in_sign="ssasbs", out_sign="", diff --git a/sat_frontends/jp/cmd_pubsub.py b/sat_frontends/jp/cmd_pubsub.py index 428fea2a..d606a292 100644 --- a/sat_frontends/jp/cmd_pubsub.py +++ b/sat_frontends/jp/cmd_pubsub.py @@ -878,7 +878,7 @@ class Delete(base.CommandBase): ) await self.host.confirmOrQuit(message, _("item deletion cancelled")) try: - await self.host.bridge.psRetractItem( + await self.host.bridge.psItemRetract( self.args.service, self.args.node, self.args.item, @@ -1688,7 +1688,7 @@ class Transform(base.CommandBase): self.disp(_(f"Deleting item {item_id}")) if self.args.apply: try: - await self.host.bridge.psRetractItem( + await self.host.bridge.psItemRetract( self.args.service, self.args.node, item_id,