diff options
-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) |