Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pippy_app.py
diff options
context:
space:
mode:
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.