summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2018-12-15 23:28:46 +0000
committerMaxime “pep” Buquet <pep@bouah.net>2018-12-16 16:57:48 +0000
commitf86626a7f43d7669877de17c181596d7644e5cad (patch)
tree74dc84450d3df2d9d040327a3a721016bc133028
parent82da51cb3d1c806cecc105992b20c2493bcab403 (diff)
downloadpoezio-f86626a7f43d7669877de17c181596d7644e5cad.tar.gz
poezio-f86626a7f43d7669877de17c181596d7644e5cad.tar.bz2
poezio-f86626a7f43d7669877de17c181596d7644e5cad.tar.xz
poezio-f86626a7f43d7669877de17c181596d7644e5cad.zip
impromptu: don't set roomname and roomdesc; remove jids argument
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 <pep@bouah.net>
-rw-r--r--poezio/core/core.py6
1 files changed, 2 insertions, 4 deletions
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):