changeset 7a698fc1761e in /home/hg/repos/gajim
author: Yann Leboulanger asterix@lagaule.org branches: gajim_0.16 details:http://hg.gajim.org/gajim?cmd=changeset;node=7a698fc1761e description: make last message correction work for carbon copied messages sent from another resource. Fixes #8276
diffstat:
src/chat_control.py | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
diffs (17 lines):
diff -r 90dac6b3e04f -r 7a698fc1761e src/chat_control.py --- a/src/chat_control.py Mon Feb 29 21:29:20 2016 +0100 +++ b/src/chat_control.py Sat Mar 05 14:22:56 2016 +0100 @@ -928,6 +928,13 @@ correct_id[1] == self.last_received_id[name]: self.conv_textview.correct_last_received_message(text, xhtml, name, old_txt) + elif correct_id and correct_id[1] and \ + self.conv_textview.last_sent_message_marks[0] and \ + correct_id[1] == self.last_received_id[name]: + # this is for carbon copied messages that are sent from another + # resource + self.conv_textview.correct_last_sent_message(text, xhtml, + self.get_our_nick(), old_txt) else: textview.print_conversation_line(text, jid, kind, name, tim, other_tags_for_name, other_tags_for_time, other_tags_for_text,