aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy/empathy-contact.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index a5b799793..8384d2714 100644
--- a/libempathy/empathy-contact.c
+++ b/libempathy/empathy-contact.c
@@ -803,7 +803,7 @@ empathy_contact_set_persona (EmpathyContact *contact,
EmpathyContactPriv *priv;
g_return_if_fail (EMPATHY_IS_CONTACT (contact));
- g_return_if_fail (FOLKS_IS_PERSONA (persona));
+ g_return_if_fail (TPF_IS_PERSONA (persona));
priv = GET_PRIV (contact);
@@ -824,9 +824,7 @@ empathy_contact_set_persona (EmpathyContact *contact,
/* Set the persona's groups */
if (priv->groups != NULL)
{
- if (FOLKS_IS_GROUPS (persona))
- folks_groups_set_groups (FOLKS_GROUPS (persona), priv->groups);
-
+ folks_groups_set_groups (FOLKS_GROUPS (persona), priv->groups);
g_hash_table_destroy (priv->groups);
priv->groups = NULL;
}