[empathy] tp-chat: prepare CONTACTS before our custom feature
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] tp-chat: prepare CONTACTS before our custom feature
- Date: Thu, 24 Oct 2013 16:13:13 +0000 (UTC)
commit afd6c51230db7c8573c7768685c26370a13259c8
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Oct 24 17:11:56 2013 +0200
tp-chat: prepare CONTACTS before our custom feature
We rely on TP_CHANNEL_FEATURE_CONTACTS being prepared when preparing
EMPATHY_TP_CHAT_FEATURE_READY.
libempathy/empathy-tp-chat.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c
index f76c5b9..6d2d0a9 100644
--- a/libempathy/empathy-tp-chat.c
+++ b/libempathy/empathy-tp-chat.c
@@ -967,13 +967,14 @@ static const TpProxyFeature *
tp_chat_list_features (TpProxyClass *cls G_GNUC_UNUSED)
{
static TpProxyFeature features[N_FEAT + 1] = { { 0 } };
- static GQuark need[2] = {0, 0};
+ static GQuark need[3] = {0, 0, 0};
if (G_LIKELY (features[0].name != 0))
return features;
features[FEAT_READY].name = EMPATHY_TP_CHAT_FEATURE_READY;
need[0] = TP_TEXT_CHANNEL_FEATURE_INCOMING_MESSAGES;
+ need[1] = TP_CHANNEL_FEATURE_CONTACTS;
features[FEAT_READY].depends_on = need;
features[FEAT_READY].prepare_async =
tp_chat_prepare_ready_async;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]