Disco the room after it has been created

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

View File

@ -1818,6 +1818,8 @@ class GroupchatControl(ChatControlBase):
# app.py)
self.print_conversation(_('Room logging is enabled'))
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'))
if '210' in obj.status_code:
self.print_conversation(\