From 39c187ada449df6e3b9f5da32a8f54c150db220c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sun, 2 Sep 2018 23:31:42 +0200 Subject: [PATCH] Fix highlight on messages without time --- 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 68476f772..5ea21a9c7 100644 --- a/gajim/groupchat_control.py +++ b/gajim/groupchat_control.py @@ -1438,7 +1438,7 @@ class GroupchatControl(ChatControlBase): sound = 'received' # Is it a history message? Don't want sound-floods when we join. - if time.mktime(time.localtime()) - tim > 1: + if tim is not None and time.mktime(time.localtime()) - tim > 1: sound = None return (highlight, sound)