Fix highlight on messages without time

This commit is contained in:
Philipp Hörist 2018-09-02 23:31:42 +02:00
parent b8444fec64
commit a9a115d359
1 changed files with 1 additions and 1 deletions

View File

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