Fix notify_on_all_muc_messages I just broke, remove useless and unclear function
This commit is contained in:
parent
3a32809a21
commit
e2929d12bf
|
@ -561,7 +561,8 @@ class ChatControlBase(MessageControl):
|
||||||
if self.type_id == message_control.TYPE_GC:
|
if self.type_id == message_control.TYPE_GC:
|
||||||
gc_message = True
|
gc_message = True
|
||||||
if not gc_message or \
|
if not gc_message or \
|
||||||
(gc_message and other_tags_for_text == ['marked']):
|
(gc_message and (other_tags_for_text == ['marked'] or \
|
||||||
|
gajim.config.get('notify_on_all_muc_messages'))):
|
||||||
# we want to have save this message in events list
|
# we want to have save this message in events list
|
||||||
# other_tags_for_text == ['marked'] --> highlighted gc message
|
# other_tags_for_text == ['marked'] --> highlighted gc message
|
||||||
type_ = 'printed_' + self.type_id
|
type_ = 'printed_' + self.type_id
|
||||||
|
|
|
@ -326,9 +326,6 @@ class GroupchatControl(ChatControlBase):
|
||||||
|
|
||||||
menu.show_all()
|
menu.show_all()
|
||||||
|
|
||||||
def notify_on_new_messages(self):
|
|
||||||
return gajim.config.get('notify_on_all_muc_messages')
|
|
||||||
|
|
||||||
def on_treeview_size_allocate(self, widget, allocation):
|
def on_treeview_size_allocate(self, widget, allocation):
|
||||||
'''The MUC treeview has resized. Move the hpaned in all tabs to match'''
|
'''The MUC treeview has resized. Move the hpaned in all tabs to match'''
|
||||||
self.hpaned_position = self.hpaned.get_position()
|
self.hpaned_position = self.hpaned.get_position()
|
||||||
|
|
|
@ -68,10 +68,6 @@ class MessageControl:
|
||||||
# NOTE: Derived classes MUST implement this
|
# NOTE: Derived classes MUST implement this
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def notify_on_new_messages(self):
|
|
||||||
# NOTE: Derived classes MUST implement this
|
|
||||||
return False
|
|
||||||
|
|
||||||
def repaint_themed_widgets(self, theme):
|
def repaint_themed_widgets(self, theme):
|
||||||
pass # NOTE: Derived classes SHOULD implement this
|
pass # NOTE: Derived classes SHOULD implement this
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue