Philipp Hörist pushed to branch master at gajim / gajim
Commits:
a4291a27 by Roland Pallai at 2018-03-25T22:26:59+02:00
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.
- - - - -
1 changed file:
- gajim/groupchat_control.py
Changes:
=====================================
gajim/groupchat_control.py
=====================================
--- a/gajim/groupchat_control.py
+++ b/gajim/groupchat_control.py
@@ -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)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/a4291a27f10d1c90a58747cb99e6451033adb237
---
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/a4291a27f10d1c90a58747cb99e6451033adb237
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits