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

do not tb on kind gc_msg

parent f36a6af4
No related branches found
No related tags found
No related merge requests found
......@@ -273,6 +273,7 @@ class HistoryManager:
except ValueError:
pass
else:
set_color = True
if kind in (constants.KIND_SINGLE_MSG_RECV,
constants.KIND_CHAT_MSG_RECV): # it is the other side
color = gajim.config.get('inmsgcolor') # so incoming color
......@@ -282,9 +283,14 @@ class HistoryManager:
elif kind in (constants.KIND_STATUS,
constants.KIND_GCSTATUS): # is is statuses
color = gajim.config.get('statusmsgcolor') # so status color
message = '<span foreground="%s">%s</span>' % (color,
gtkgui_helpers.escape_for_pango_markup(row[4]))
else: # GC_MSG (message in room)
set_color = False
if set_color:
message = '<span foreground="%s">%s</span>' % (color,
gtkgui_helpers.escape_for_pango_markup(row[4]))
else:
message = row[4]
self.logs_liststore.append((row[0], row[1], time_, message, row[5]))
def _fill_search_results_listview(self, text):
......
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