summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poezio/text_buffer.py2
1 files changed, 2 insertions, 0 deletions
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)' %