Commit a9a115d3 authored by Philipp Hörist's avatar Philipp Hörist

Fix highlight on messages without time

parent b8444fec
Pipeline #2161 passed with stages
in 2 minutes and 7 seconds
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment