# HG changeset patch # User Goffi # Date 1592573822 -7200 # Node ID f17379123571ca067c41500c9413ad028cb525cd # Parent 9d61ceeaa847fc19644a7f682f3cacbb6a109794 plugin list of interest: new "interestRetract" method diff -r 9d61ceeaa847 -r f17379123571 sat/plugins/plugin_exp_list_of_interest.py --- a/sat/plugins/plugin_exp_list_of_interest.py Fri Jun 19 15:35:45 2020 +0200 +++ b/sat/plugins/plugin_exp_list_of_interest.py Fri Jun 19 15:37:02 2020 +0200 @@ -69,6 +69,14 @@ method=self._registerFileSharing, async_=True, ) + host.bridge.addMethod( + "interestRetract", + ".plugin", + in_sign="sss", + out_sign="", + method=self._interestRetract, + async_=True, + ) def getHandler(self, client): return ListInterestHandler(self) @@ -261,6 +269,12 @@ defer.returnValue((items, metadata)) + def _interestRetract(self, service_s, item_id, profile_key): + d = self._p._retractItem( + service_s, NS_LIST_INTEREST, item_id, True, profile_key) + d.addCallback(lambda __: None) + return d + @implementer(iwokkel.IDisco) class ListInterestHandler(XMPPHandler): diff -r 9d61ceeaa847 -r f17379123571 sat/plugins/plugin_xep_0234.py --- a/sat/plugins/plugin_xep_0234.py Fri Jun 19 15:35:45 2020 +0200 +++ b/sat/plugins/plugin_xep_0234.py Fri Jun 19 15:37:02 2020 +0200 @@ -1,6 +1,5 @@ #!/usr/bin/env python3 - # SAT plugin for Jingle File Transfer (XEP-0234) # Copyright (C) 2009-2020 Jérôme Poisson (goffi@goffi.org)