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