diff options
author | Mathieu Pasquet <mathieui@mathieui.net> | 2014-02-01 17:54:05 +0100 |
---|---|---|
committer | Mathieu Pasquet <mathieui@mathieui.net> | 2014-02-01 17:54:31 +0100 |
commit | c16fc9c3e92a3750dbcbd13fd6eb39146b9ed09d (patch) | |
tree | 3b94210910ccdb1f6ab6c51f5a1b7b3d464b272f /src/tabs.py | |
parent | ccb3abd704289b3724eb0bed7cb02ba540d615fa (diff) | |
download | poezio-c16fc9c3e92a3750dbcbd13fd6eb39146b9ed09d.tar.gz poezio-c16fc9c3e92a3750dbcbd13fd6eb39146b9ed09d.tar.bz2 poezio-c16fc9c3e92a3750dbcbd13fd6eb39146b9ed09d.tar.xz poezio-c16fc9c3e92a3750dbcbd13fd6eb39146b9ed09d.zip |
Fix #2445 (autcorrect not showing in private convs)
Diffstat (limited to 'src/tabs.py')
-rw-r--r-- | src/tabs.py | 8 |
1 files 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: |