summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-12-16 14:47:35 (GMT)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-12-16 15:18:59 (GMT)
commit1757ae2c07a6ef6d8699c729a4d74740e3771bd2 (patch)
tree520912489ab22cfdf1eff8abcf3c6847a842bf36
parent8375259908c5a997f8a01767cb72bc111cb51330 (diff)
downloadtelepathy-glib-1757ae2c07a6ef6d8699c729a4d74740e3771bd2.tar.gz
telepathy-glib-1757ae2c07a6ef6d8699c729a4d74740e3771bd2.tar.xz
pending_messages_removed_cb: early return if we didn't fetch pending messages yet
-rw-r--r--telepathy-glib/text-channel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/telepathy-glib/text-channel.c b/telepathy-glib/text-channel.c
index b37fb36..1050604 100644
--- a/telepathy-glib/text-channel.c
+++ b/telepathy-glib/text-channel.c
@@ -488,6 +488,9 @@ pending_messages_removed_cb (TpChannel *proxy,
TpTextChannel *self = (TpTextChannel *) proxy;
guint i;
+ if (!self->priv->got_initial_messages)
+ return;
+
for (i = 0; i < ids->len; i++)
{
guint id = g_array_index (ids, guint, i);