From 23add367be7aa0deb60a4461437344e0fbd911ff Mon Sep 17 00:00:00 2001
From: Roland Pallai <dap78@magex.hu>
Date: Sun, 25 Mar 2018 22:46:51 +0200
Subject: [PATCH] Fix regression in a4291a27

---
 gajim/groupchat_control.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gajim/groupchat_control.py b/gajim/groupchat_control.py
index 76ea9f9dbf..67e673140f 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)
-- 
GitLab