From 25d2bcbbffd7038163916b48666830c095d20507 Mon Sep 17 00:00:00 2001 From: mathieui Date: Tue, 30 Dec 2014 19:54:04 +0100 Subject: Only graphically ack a message if it was sent by us --- src/core/handlers.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/handlers.py b/src/core/handlers.py index 6c29e7c2..03a6d32d 100644 --- a/src/core/handlers.py +++ b/src/core/handlers.py @@ -33,7 +33,7 @@ from config import config, CACHE_DIR from contact import Resource from logger import logger from roster import roster -from text_buffer import CorrectionError +from text_buffer import CorrectionError, AckError from theming import dump_tuple, get_theme from . commands import dumb_callback @@ -1065,7 +1065,10 @@ def on_receipt(self, message): if not conversation: return - conversation.ack_message(msg_id) + try: + conversation.ack_message(msg_id, self.xmpp.boundjid) + except AckError: + log.debug('Error while receiving an ack', exc_info=True) def on_data_form(self, message): """ -- cgit v1.2.3