Commit 6d50b72e authored by Philipp Hörist's avatar Philipp Hörist

Remove unused argument

graphics was always True, we only use it in add_info_message()
parent b23759c9
......@@ -947,9 +947,9 @@ class ChatControl(ChatControlBase):
return app.nicks[self.account]
def add_message(self, text, frm='', tim=None, encrypted=None,
subject=None, xhtml=None, xep0184_id=None,
displaymarking=None, msg_log_id=None, correct_id=None,
message_id=None, additional_data=None):
subject=None, xhtml=None, xep0184_id=None,
displaymarking=None, msg_log_id=None, correct_id=None,
message_id=None, additional_data=None):
"""
Print a line in the conversation
......
......@@ -931,11 +931,12 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
text, 'status', '', None)
def add_message(self, text, kind, name, tim,
other_tags_for_name=None, other_tags_for_time=None, other_tags_for_text=None,
restored=False, subject=None, old_kind=None, xhtml=None,
xep0184_id=None, graphics=True, displaymarking=None, msg_log_id=None,
message_id=None, correct_id=None, additional_data=None,
encrypted=None):
other_tags_for_name=None, other_tags_for_time=None,
other_tags_for_text=None, restored=False, subject=None,
old_kind=None, xhtml=None, xep0184_id=None,
displaymarking=None, msg_log_id=None,
message_id=None, correct_id=None, additional_data=None,
encrypted=None):
"""
Print 'chat' type messages
correct_id = (message_id, correct_id)
......@@ -958,7 +959,7 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
textview.print_conversation_line(text, kind, name, tim,
other_tags_for_name, other_tags_for_time, other_tags_for_text,
subject, old_kind, xhtml, graphics=graphics,
subject, old_kind, xhtml,
displaymarking=displaymarking, message_id=message_id,
correct_id=correct_id, additional_data=additional_data,
encrypted=encrypted)
......
......@@ -1277,8 +1277,8 @@ class GroupchatControl(ChatControlBase):
return self.model.get_iter(path)
def add_message(self, text, contact='', tim=None, xhtml=None,
graphics=True, displaymarking=None, correct_id=None, message_id=None,
encrypted=None, additional_data=None):
displaymarking=None, correct_id=None, message_id=None,
encrypted=None, additional_data=None):
"""
Add message to the ConversationsTextview
......@@ -1319,7 +1319,7 @@ class GroupchatControl(ChatControlBase):
ChatControlBase.add_message(self, text, kind, contact, tim,
other_tags_for_name, [], other_tags_for_text, xhtml=xhtml,
graphics=graphics, displaymarking=displaymarking,
displaymarking=displaymarking,
correct_id=correct_id, message_id=message_id, encrypted=encrypted,
additional_data=additional_data)
......
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