From f86626a7f43d7669877de17c181596d7644e5cad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sat, 15 Dec 2018 23:28:46 +0000 Subject: impromptu: don't set roomname and roomdesc; remove jids argument MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I was originally panning to generate a user-friendly room name with them, but this can/should be done at runtime (in case it changes). Signed-off-by: Maxime “pep” Buquet --- poezio/core/core.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'poezio/core/core.py') diff --git a/poezio/core/core.py b/poezio/core/core.py index e601eace..54c33a0d 100644 --- a/poezio/core/core.py +++ b/poezio/core/core.py @@ -872,11 +872,9 @@ class Core: self.xmpp.plugin['xep_0030'].get_info( jid=jid, timeout=5, callback=callback) - def _impromptu_room_form(self, room, _jids): + def _impromptu_room_form(self, room): fields = [ ('hidden', 'FORM_TYPE', 'http://jabber.org/protocol/muc#roomconfig'), - ('text-single', 'muc#roomconfig_roomname', 'Foo'), - ('text-single', 'muc#roomconfig_roomdesc', 'Bar'), ('boolean', 'muc#roomconfig_changesubject', True), ('boolean', 'muc#roomconfig_allowinvites', True), ('boolean', 'muc#roomconfig_persistent', True), @@ -939,7 +937,7 @@ class Core: room = uuid.uuid4().hex + '@' + default_muc self.open_new_room(room, nick).join() - iq = self._impromptu_room_form(room, jids) + iq = self._impromptu_room_form(room) try: await iq.send() except (IqError, IqTimeout): -- cgit v1.2.3