Fix highlight on messages without time

This commit is contained in:
Philipp Hörist 2018-09-02 23:31:42 +02:00 committed by Philipp Hörist
parent 9aed694143
commit 39c187ada4
1 changed files with 1 additions and 1 deletions

View File

@ -1438,7 +1438,7 @@ class GroupchatControl(ChatControlBase):
sound = 'received'
# 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
return (highlight, sound)