Fix regression in a4291a27

This commit is contained in:
Roland Pallai 2018-03-25 22:46:51 +02:00
parent a4291a27f1
commit 23add367be
1 changed files with 1 additions and 1 deletions

View File

@ -1404,7 +1404,7 @@ class GroupchatControl(ChatControlBase):
sound = 'received'
# Is it a history message? Don't want sound-floods when we join.
if tim - time.mktime(time.localtime()) > 1:
if time.mktime(time.localtime()) - tim > 1:
sound = None
return (highlight, sound)