Commit a4291a27 authored by Roland Pallai's avatar Roland Pallai Committed by Philipp Hörist
Browse files

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.
parent 69fd7dc7
......@@ -1404,7 +1404,7 @@ def highlighting_for_message(self, text, tim):
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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment