Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pippy_app.py
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2008-05-08 13:09:17 (GMT)
committer Morgan Collett <morgan.collett@gmail.com>2008-05-21 14:59:48 (GMT)
commit68c4f208990803021f289d927eb72dfe4e762a68 (patch)
treee3f3a209057d49f0f8ac8ce4a1c3847ccc7b653f /pippy_app.py
parentff2618e5eb636f5f068bc0aa0a87c9b4029e79a9 (diff)
Handle pending messages when setting the message handler
Diffstat (limited to 'pippy_app.py')
-rw-r--r--pippy_app.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pippy_app.py b/pippy_app.py
index 2e6e5a0..c038b49 100644
--- a/pippy_app.py
+++ b/pippy_app.py
@@ -454,6 +454,11 @@ class TextChannelWrapper(object):
self._text_chan[CHANNEL_TYPE_TEXT].connect_to_signal('Received',
self._received_cb)
+ # handle pending messages
+ for id, timestamp, sender, type, flags, text in \
+ self._text_chan[CHANNEL_TYPE_TEXT].ListPendingMessages(True):
+ self._received_cb(id, timestamp, sender, type, flags, text)
+
def _received_cb(self, id, timestamp, sender, type, flags, text):
"""Handle received text from the text channel.