Fix broken highlight sound in Groupchat
tim is epoch, time.localtime() a struct_time
This commit is contained in:
parent
6f2fbde60e
commit
2a2d4477a7
|
@ -1290,7 +1290,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 tim != time.localtime():
|
if tim != time.mktime(time.localtime()):
|
||||||
sound = None
|
sound = None
|
||||||
|
|
||||||
return (highlight, sound)
|
return (highlight, sound)
|
||||||
|
|
Loading…
Reference in New Issue