summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-08-01 01:04:35 +0200
committermathieui <mathieui@mathieui.net>2013-08-01 01:04:35 +0200
commit2730d8a2b5defb76ba206b472432a82c59560fb0 (patch)
treea2db70b79be5048beb26b7f272e9653a720cac75
parent890945d03713a6719e87aac43c86e6682dc00a07 (diff)
downloadpoezio-2730d8a2b5defb76ba206b472432a82c59560fb0.tar.gz
poezio-2730d8a2b5defb76ba206b472432a82c59560fb0.tar.bz2
poezio-2730d8a2b5defb76ba206b472432a82c59560fb0.tar.xz
poezio-2730d8a2b5defb76ba206b472432a82c59560fb0.zip
ref #2318 (fix correction when the server doesn’t send back the same ids)
This will only work if the message ids are the same across all participants…
-rw-r--r--src/core.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core.py b/src/core.py
index 2bafc871..8edbd8dc 100644
--- a/src/core.py
+++ b/src/core.py
@@ -3094,6 +3094,9 @@ class Core(object):
if not replaced and tab.add_message(body, date, nick_from, history=delayed, identifier=message['id'], jid=message['from'], typ=1):
self.events.trigger('highlight', message, tab)
+ if message['from'].resource == tab.own_nick:
+ tab.last_sent_message = message
+
if tab is self.current_tab():
tab.text_win.refresh()
tab.info_header.refresh(tab, tab.text_win)