fix a tb
This commit is contained in:
parent
58df926934
commit
1789db7dde
|
@ -419,8 +419,9 @@ timestamp, contact):
|
||||||
in the last 5 seconds?
|
in the last 5 seconds?
|
||||||
if yes we go active for mouse, composing for kbd
|
if yes we go active for mouse, composing for kbd
|
||||||
if no we go paused if we were previously composing '''
|
if no we go paused if we were previously composing '''
|
||||||
if jid not in self.xmls:
|
if jid not in self.xmls or contact is None:
|
||||||
# the tab with jid is no longer open. stop timer
|
# the tab with jid is no longer open or contact left
|
||||||
|
# stop timer
|
||||||
return False # stop looping
|
return False # stop looping
|
||||||
|
|
||||||
# FIXME: Why don't we just pass contact?
|
# FIXME: Why don't we just pass contact?
|
||||||
|
@ -450,8 +451,8 @@ timestamp, contact):
|
||||||
in the last 30 seconds?
|
in the last 30 seconds?
|
||||||
if yes we go active
|
if yes we go active
|
||||||
if no we go inactive '''
|
if no we go inactive '''
|
||||||
if jid not in self.xmls:
|
if jid not in self.xmls or contact is None:
|
||||||
# the tab with jid is no longer open. stop timer
|
# the tab with jid is no longer open or contact left
|
||||||
return False # stop looping
|
return False # stop looping
|
||||||
|
|
||||||
# FIXME: Why don't we just pass contact?
|
# FIXME: Why don't we just pass contact?
|
||||||
|
|
Loading…
Reference in New Issue