summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-12-30 19:54:04 +0100
committermathieui <mathieui@mathieui.net>2014-12-30 19:54:04 +0100
commit25d2bcbbffd7038163916b48666830c095d20507 (patch)
treef174d4f4041c3be55c023504d085853374d09138 /src/core
parent1debbe6a7277e0cdfdda8d3f5430cac3c4411a77 (diff)
downloadpoezio-25d2bcbbffd7038163916b48666830c095d20507.tar.gz
poezio-25d2bcbbffd7038163916b48666830c095d20507.tar.bz2
poezio-25d2bcbbffd7038163916b48666830c095d20507.tar.xz
poezio-25d2bcbbffd7038163916b48666830c095d20507.zip
Only graphically ack a message if it was sent by us
Diffstat (limited to 'src/core')
-rw-r--r--src/core/handlers.py7
1 files changed, 5 insertions, 2 deletions
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):
"""