From 2730d8a2b5defb76ba206b472432a82c59560fb0 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 1 Aug 2013 01:04:35 +0200 Subject: =?UTF-8?q?ref=20#2318=20(fix=20correction=20when=20the=20server?= =?UTF-8?q?=20doesn=E2=80=99t=20send=20back=20the=20same=20ids)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This will only work if the message ids are the same across all participants… --- src/core.py | 3 +++ 1 file changed, 3 insertions(+) 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) -- cgit v1.2.3