From ce98b7a5de2a6103a5d754e692b5c2ee84638a10 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 08 May 2008 13:18:58 +0000 Subject: ACK received messages --- diff --git a/pippy_app.py b/pippy_app.py index c038b49..54a5b7b 100644 --- a/pippy_app.py +++ b/pippy_app.py @@ -456,7 +456,7 @@ class TextChannelWrapper(object): # handle pending messages for id, timestamp, sender, type, flags, text in \ - self._text_chan[CHANNEL_TYPE_TEXT].ListPendingMessages(True): + self._text_chan[CHANNEL_TYPE_TEXT].ListPendingMessages(False): self._received_cb(id, timestamp, sender, type, flags, text) def _received_cb(self, id, timestamp, sender, type, flags, text): @@ -469,6 +469,7 @@ class TextChannelWrapper(object): # XXX: cache these buddy = self._get_buddy(sender) self._activity_cb(buddy, text) + self._text_chan[CHANNEL_TYPE_TEXT].AcknowledgePendingMessages([id]) else: self._logger.debug('Throwing received message on the floor' ' since there is no callback connected. See ' -- cgit v0.9.1