From c16fc9c3e92a3750dbcbd13fd6eb39146b9ed09d Mon Sep 17 00:00:00 2001 From: Mathieu Pasquet Date: Sat, 1 Feb 2014 17:54:05 +0100 Subject: Fix #2445 (autcorrect not showing in private convs) --- src/tabs.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tabs.py b/src/tabs.py index 37cb6fdf..ac8011ac 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -1965,11 +1965,11 @@ class PrivateTab(ChatTab): return user = self.parent_muc.get_user_by_name(self.own_nick) replaced = False - if correct: + if correct or msg['replace']['id']: msg['replace']['id'] = self.last_sent_message['id'] if config.get_by_tabname('group_corrections', 'true', self.get_name()).lower() != 'false': try: - self.modify_message(line, self.last_sent_message['id'], msg['id'], + self.modify_message(msg['body'], self.last_sent_message['id'], msg['id'], user=user, jid=self.core.xmpp.boundjid, nickname=self.own_nick) replaced = True except: @@ -3186,11 +3186,11 @@ class ConversationTab(ChatTab): self.input.refresh() return replaced = False - if correct: + if correct or msg['replace']['id']: msg['replace']['id'] = self.last_sent_message['id'] if config.get_by_tabname('group_corrections', 'true', self.get_name()).lower() != 'false': try: - self.modify_message(line, self.last_sent_message['id'], msg['id'], jid=self.core.xmpp.boundjid, + self.modify_message(msg['body'], self.last_sent_message['id'], msg['id'], jid=self.core.xmpp.boundjid, nickname=self.core.own_nick) replaced = True except: -- cgit v1.2.3