Fix broken highlight sound in Groupchat

tim is epoch, time.localtime() a struct_time
This commit is contained in:
Philipp Hörist 2017-10-07 11:15:10 +02:00
parent 6f2fbde60e
commit 2a2d4477a7
1 changed files with 1 additions and 1 deletions

View File

@ -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)