Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'nbxmpp/modules/muc/muc.py')
-rw-r--r--nbxmpp/modules/muc/muc.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/nbxmpp/modules/muc/muc.py b/nbxmpp/modules/muc/muc.py
index c596761..0d94375 100644
--- a/nbxmpp/modules/muc/muc.py
+++ b/nbxmpp/modules/muc/muc.py
@@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; If not, see <http://www.gnu.org/licenses/>.
+from typing import Optional
from nbxmpp.namespaces import Namespace
from nbxmpp.protocol import ERR_NOT_ACCEPTABLE
@@ -61,6 +62,7 @@ class MUC(BaseModule):
_depends = {
'disco_info': 'Discovery',
'request_vcard': 'VCardTemp',
+ 'send_retract_request': 'Moderation',
}
def __init__(self, client):
@@ -468,6 +470,10 @@ class MUC(BaseModule):
response = yield make_set_role_request(room_jid, nick, role, reason)
yield process_response(response)
+ def retract_message(self, room_jid: JID, stanza_id: str,
+ reason: Optional[str] = None) -> None:
+ self.send_retract_request(room_jid, stanza_id, reason)
+
def set_subject(self, room_jid, subject):
message = Message(room_jid, typ='groupchat', subject=subject)
self._log.info('Set subject for %s', room_jid)