Disco the room after it has been created

This commit is contained in:
Philipp Hörist 2018-09-01 00:03:03 +02:00
parent 527762f726
commit be96422a14
1 changed files with 2 additions and 0 deletions

View File

@ -1818,6 +1818,8 @@ class GroupchatControl(ChatControlBase):
# app.py) # app.py)
self.print_conversation(_('Room logging is enabled')) self.print_conversation(_('Room logging is enabled'))
if '201' in obj.status_code: if '201' in obj.status_code:
app.connections[self.account].get_module('Discovery').disco_muc(
self.room_jid, self.update_actions, update=True)
self.print_conversation(_('A new room has been created')) self.print_conversation(_('A new room has been created'))
if '210' in obj.status_code: if '210' in obj.status_code:
self.print_conversation(\ self.print_conversation(\