diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-06-08 16:54:30 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-08-20 03:56:11 +0800 |
commit | 82600285342927b40d8a7b72f0b559b4b14d01a3 (patch) | |
tree | bb9236349640c4e6945c34f374a68bd9ec8c645f | |
parent | 138759c101a9dd03db74d082d58c43e252e96217 (diff) | |
download | gsoc2013-empathy-82600285342927b40d8a7b72f0b559b4b14d01a3.tar gsoc2013-empathy-82600285342927b40d8a7b72f0b559b4b14d01a3.tar.gz gsoc2013-empathy-82600285342927b40d8a7b72f0b559b4b14d01a3.tar.bz2 gsoc2013-empathy-82600285342927b40d8a7b72f0b559b4b14d01a3.tar.lz gsoc2013-empathy-82600285342927b40d8a7b72f0b559b4b14d01a3.tar.xz gsoc2013-empathy-82600285342927b40d8a7b72f0b559b4b14d01a3.tar.zst gsoc2013-empathy-82600285342927b40d8a7b72f0b559b4b14d01a3.zip |
EmpathyContactListFlags: add _MESSAGE_ADD flag
https://bugzilla.gnome.org/show_bug.cgi?id=656934
-rw-r--r-- | libempathy/empathy-contact-list.h | 1 | ||||
-rw-r--r-- | libempathy/empathy-tp-contact-list.c | 4 |
2 files changed, 5 insertions, 0 deletions
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) |