diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2008-05-08 13:18:58 (GMT) |
---|---|---|
committer | Morgan Collett <morgan.collett@gmail.com> | 2008-05-21 15:01:06 (GMT) |
commit | ce98b7a5de2a6103a5d754e692b5c2ee84638a10 (patch) | |
tree | 4ced337bca44fb63fd984b2d20907cba7b8735b2 | |
parent | 421323f1f85c871427ed391e8e14db49e704fbb7 (diff) |
ACK received messages
-rw-r--r-- | pippy_app.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 ' |