Fix highlight on messages without time
This commit is contained in:
parent
b8444fec64
commit
a9a115d359
|
@ -1438,7 +1438,7 @@ class GroupchatControl(ChatControlBase):
|
||||||
sound = 'received'
|
sound = 'received'
|
||||||
|
|
||||||
# Is it a history message? Don't want sound-floods when we join.
|
# Is it a history message? Don't want sound-floods when we join.
|
||||||
if time.mktime(time.localtime()) - tim > 1:
|
if tim is not None and time.mktime(time.localtime()) - tim > 1:
|
||||||
sound = None
|
sound = None
|
||||||
|
|
||||||
return (highlight, sound)
|
return (highlight, sound)
|
||||||
|
|
Loading…
Reference in New Issue