Skip to content
Snippets Groups Projects
Commit cfad5352 authored by jimpp's avatar jimpp
Browse files

Put last highlighter on top on stack if he is already in it. Thanks Yann

parent 30ac161e
No related branches found
No related tags found
No related merge requests found
......@@ -646,10 +646,12 @@ class GroupchatControl(ChatControlBase):
self.parent_win.redraw_tab(self, 'attention')
other_tags_for_name.append('bold')
other_tags_for_text.append('marked')
if contact not in self.attention_list:
self.attention_list.append(contact)
if len(self.attention_list) > 6:
self.attention_list.pop(0) # remove older
if contact in self.attention_list:
self.attention_list.remove(contact)
elif len(self.attention_list) > 6:
self.attention_list.pop(0) # remove older
self.attention_list.append(contact)
if sound == 'received':
helpers.play_sound('muc_message_received')
......
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