Commit cd50df05 authored by Thilo Molitor's avatar Thilo Molitor

Fix API change for print_special_text (added additional_data={})

parent 92790088
......@@ -83,14 +83,15 @@ class JuickPlugin(GajimPlugin):
if self.conn:
self.conn.close()
def print_special_text(self, tv, special_text, other_tags, graphics=True):
def print_special_text(self, tv, special_text, other_tags, graphics=True,
additional_data={}):
for control in self.controls:
if control.chat_control.conv_textview != tv:
continue
control.print_special_text(special_text, other_tags, graphics=True)
def print_special_text1(self, chat_control, special_text, other_tags=None,
graphics=True):
graphics=True, additional_data={}):
for control in self.controls:
if control.chat_control == chat_control:
control.disconnect_from_chat_control()
......
......@@ -53,7 +53,7 @@ class UrlImagePreviewPlugin(GajimPlugin):
control.print_special_text(special_text, other_tags, graphics=True)
def print_special_text1(self, chat_control, special_text, other_tags=None,
graphics=True):
graphics=True, additional_data={}):
for control in self.controls:
if control.chat_control == chat_control:
control.disconnect_from_chat_control()
......
......@@ -85,14 +85,15 @@ class UrlShortenerPlugin(GajimPlugin):
control.disconnect_from_chat_control()
self.controls = []
def print_special_text(self, tv, special_text, other_tags, graphics=True):
def print_special_text(self, tv, special_text, other_tags, graphics=True,
additional_data={}):
for control in self.controls:
if control.chat_control.conv_textview != tv:
continue
control.print_special_text(special_text, other_tags, graphics=True)
def print_special_text1(self, chat_control, special_text, other_tags=None,
graphics=True):
graphics=True, additional_data={}):
for control in self.controls:
if control.chat_control == chat_control:
control.disconnect_from_chat_control()
......
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