Philipp Hörist pushed to branch master at gajim / gajim
Commits: ef3cc504 by Philipp Hörist at 2018-10-03T05:53:30Z Pass correct show state
- - - - -
1 changed file:
- gajim/common/connection.py
Changes:
===================================== 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): """
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/ef3cc504d236e1976fa556f57df16123038...