Skip to content
Snippets Groups Projects
Commit f87affbf authored by nkour's avatar nkour
Browse files

do not tb if with contact we have no logs at all

parent 25fcf22b
No related branches found
No related tags found
No related merge requests found
......@@ -120,11 +120,12 @@ class HistoryWindow:
# select and show logs for last date we have logs with contact
# and if we don't have logs at all, default to today
result = gajim.logger.get_last_date_that_has_logs(self.jid)
tim = result[0]
if tim != '':
date = time.localtime(tim)
else:
if result is None:
date = time.localtime()
else:
tim = result[0]
date = time.localtime(tim)
y, m, d = date[0], date[1], date[2]
self.calendar.select_day(d)
self.add_lines_for_date(y, m, d)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment