Fix sound playback for received group chat messages

Testing for historical messages was broken because `msg_obj.timestamp`
second resolution assumed but this is false and this led to broken
sound playback for received group chat messages.
This commit is contained in:
Roland Pallai 2018-03-25 20:58:12 +02:00 committed by Philipp Hörist
parent 69fd7dc737
commit a4291a27f1
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()):
if tim - time.mktime(time.localtime()) > 1:
sound = None
return (highlight, sound)