diff --git a/gajim/groupchat_control.py b/gajim/groupchat_control.py index 76ea9f9db..67e673140 100644 --- 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()) > 1: + if time.mktime(time.localtime()) - tim > 1: sound = None return (highlight, sound)