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:
parent
69fd7dc737
commit
a4291a27f1
|
@ -1404,7 +1404,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 tim != time.mktime(time.localtime()):
|
if tim - time.mktime(time.localtime()) > 1:
|
||||||
sound = None
|
sound = None
|
||||||
|
|
||||||
return (highlight, sound)
|
return (highlight, sound)
|
||||||
|
|
Loading…
Reference in New Issue