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>
This commit is contained in:
Maxime “pep” Buquet 2018-12-15 23:28:46 +00:00
parent 82da51cb3d
commit f86626a7f4

View file

@ -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):