From 82600285342927b40d8a7b72f0b559b4b14d01a3 Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Wed, 8 Jun 2011 09:54:30 +0100 Subject: EmpathyContactListFlags: add _MESSAGE_ADD flag https://bugzilla.gnome.org/show_bug.cgi?id=656934 --- libempathy/empathy-contact-list.h | 1 + libempathy/empathy-tp-contact-list.c | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'libempathy') diff --git a/libempathy/empathy-contact-list.h b/libempathy/empathy-contact-list.h index cf523bf2a..b36817a93 100644 --- a/libempathy/empathy-contact-list.h +++ b/libempathy/empathy-contact-list.h @@ -41,6 +41,7 @@ typedef enum { EMPATHY_CONTACT_LIST_CAN_GROUP = 1 << 3, EMPATHY_CONTACT_LIST_CAN_BLOCK = 1 << 4, EMPATHY_CONTACT_LIST_CAN_REPORT_ABUSIVE = 1 << 5, + EMPATHY_CONTACT_LIST_MESSAGE_ADD = 1 << 6, } EmpathyContactListFlags; typedef struct _EmpathyContactListIface EmpathyContactListIface; diff --git a/libempathy/empathy-tp-contact-list.c b/libempathy/empathy-tp-contact-list.c index 11990a9a2..d9fb18182 100644 --- a/libempathy/empathy-tp-contact-list.c +++ b/libempathy/empathy-tp-contact-list.c @@ -1358,6 +1358,10 @@ tp_contact_list_get_flags (EmpathyContactList *list) if (group_flags & TP_CHANNEL_GROUP_FLAG_CAN_REMOVE) { flags |= EMPATHY_CONTACT_LIST_CAN_REMOVE; } + + if (group_flags & TP_CHANNEL_GROUP_FLAG_MESSAGE_ADD) { + flags |= EMPATHY_CONTACT_LIST_MESSAGE_ADD; + } } if (priv->deny != NULL) -- cgit v1.2.3