From 03a2e21ed7a53a36f8ccc4d7e9753ef4f5020a98 Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 27 Dec 2017 20:16:50 +0100 Subject: Do not show a message as bounced if it was acked by a client Fixes #3365 --- poezio/text_buffer.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'poezio/text_buffer.py') diff --git a/poezio/text_buffer.py b/poezio/text_buffer.py index 3e6732cf..b247a8d8 100644 --- a/poezio/text_buffer.py +++ b/poezio/text_buffer.py @@ -211,6 +211,8 @@ class TextBuffer(object): if i == -1: return msg = self.messages[i] + if msg.ack == 1: # Message was already acked + return False if msg.jid != jid: raise AckError( 'Wrong JID for message id %s (was %s, expected %s)' % -- cgit v1.2.3