Dont show joined message on status change

This commit is contained in:
Philipp Hörist 2018-10-06 23:08:53 +02:00
parent 10faa940c6
commit 0c1a271e7a
1 changed files with 5 additions and 4 deletions

View File

@ -1858,10 +1858,11 @@ class GroupchatControl(ChatControlBase):
# init
if obj.status_code and obj.nick == self.nick:
if '110' in obj.status_code:
# We just join the room
self.print_conversation(
_('You (%s) joined the room') % self.nick,
'info', graphics=False)
if not self.is_connected:
# We just join the room
self.print_conversation(
_('You (%s) joined the room') % self.nick,
'info', graphics=False)
if self.room_jid in app.automatic_rooms[self.account] and \
app.automatic_rooms[self.account][self.room_jid]['invities']:
if self.room_jid not in app.interface.instances[