summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-12-30 19:27:59 +0100
committermathieui <mathieui@mathieui.net>2012-12-30 19:27:59 +0100
commit80c79d8b791bd659059c2a5c8935b32f7e37edde (patch)
tree03a4f8d7b788841ec8e01be3dd86ebb0881aa09e /src/core.py
parent5fe494699a3abc0e1c0e53fdb0d6d875a1e0c9f8 (diff)
downloadpoezio-80c79d8b791bd659059c2a5c8935b32f7e37edde.tar.gz
poezio-80c79d8b791bd659059c2a5c8935b32f7e37edde.tar.bz2
poezio-80c79d8b791bd659059c2a5c8935b32f7e37edde.tar.xz
poezio-80c79d8b791bd659059c2a5c8935b32f7e37edde.zip
Fix #2189 Fix #2139 - Make /correct work properly in all chat tabs
#2189 wasn’t crashing, but well. Also fix a crash with the separator and /correct
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/core.py b/src/core.py
index 5f535f48..d147e7ce 100644
--- a/src/core.py
+++ b/src/core.py
@@ -2403,7 +2403,11 @@ class Core(object):
if replaced_id is not '':
conversation.modify_message(body, replaced_id, message['id'])
else:
- conversation._text_buffer.add_message(body, date, nickname=remote_nick, nick_color=get_theme().COLOR_REMOTE_USER, history=delayed)
+ conversation._text_buffer.add_message(body, date,
+ nickname=remote_nick,
+ nick_color=get_theme().COLOR_REMOTE_USER,
+ history=delayed,
+ identifier=message['id'])
if conversation.remote_wants_chatstates is None and not delayed:
if message['chat_state']:
conversation.remote_wants_chatstates = True
@@ -2502,7 +2506,8 @@ class Core(object):
tab.modify_message(body, replaced_id, message['id'])
else:
tab.add_message(body, time=None, nickname=nick_from,
- forced_user=self.get_tab_by_name(room_from, tabs.MucTab).get_user_by_name(nick_from))
+ forced_user=self.get_tab_by_name(room_from, tabs.MucTab).get_user_by_name(nick_from),
+ identifier=message['id'])
conversation = self.get_tab_by_name(jid.full, tabs.PrivateTab)
if conversation and conversation.remote_wants_chatstates is None:
if message['chat_state']: