From 38ac6a0637252f13acff8e8f677a0afd97ee38e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Wed, 3 Oct 2018 07:53:30 +0200 Subject: [PATCH] Pass correct show state --- gajim/common/connection.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gajim/common/connection.py b/gajim/common/connection.py index 8edf36616..9d715309d 100644 --- a/gajim/common/connection.py +++ b/gajim/common/connection.py @@ -646,12 +646,12 @@ class Connection(CommonConnection, ConnectionHandlers): def set_oldst(self): # Set old state if self.old_show: self.connected = app.SHOW_LIST.index(self.old_show) - app.nec.push_incoming_event(OurShowEvent(None, conn=self, - show=self.connected)) + app.nec.push_incoming_event(OurShowEvent( + None, conn=self, show=app.SHOW_LIST[self.old_show])) else: # we default to online self.connected = 2 - app.nec.push_incoming_event(OurShowEvent(None, conn=self, - show=app.SHOW_LIST[self.connected])) + app.nec.push_incoming_event(OurShowEvent( + None, conn=self, show=app.SHOW_LIST[self.connected])) def disconnectedReconnCB(self): """