diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-02-01 23:48:24 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-02-01 23:48:26 +0800 |
commit | 91386d401d9385cf334cf4d879f97d7e49540bb1 (patch) | |
tree | b157707f8ffdad9849cc605cef52d5057f5f6506 | |
parent | 796ab375f5ff84b118320f71ea0d1a54f9dcb221 (diff) | |
download | gsoc2013-empathy-91386d401d9385cf334cf4d879f97d7e49540bb1.tar gsoc2013-empathy-91386d401d9385cf334cf4d879f97d7e49540bb1.tar.gz gsoc2013-empathy-91386d401d9385cf334cf4d879f97d7e49540bb1.tar.bz2 gsoc2013-empathy-91386d401d9385cf334cf4d879f97d7e49540bb1.tar.lz gsoc2013-empathy-91386d401d9385cf334cf4d879f97d7e49540bb1.tar.xz gsoc2013-empathy-91386d401d9385cf334cf4d879f97d7e49540bb1.tar.zst gsoc2013-empathy-91386d401d9385cf334cf4d879f97d7e49540bb1.zip |
empathy_contact_get_presence_message: use the tp_contact if there is no persona for the contact
This is needed in muc as channel specific contacts don't have a persona
associated with them (#640914).
-rw-r--r-- | libempathy/empathy-contact.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c index 76091e455..9ae26142a 100644 --- a/libempathy/empathy-contact.c +++ b/libempathy/empathy-contact.c @@ -991,10 +991,11 @@ empathy_contact_get_presence_message (EmpathyContact *contact) priv = GET_PRIV (contact); if (priv->persona != NULL) - { - return folks_presence_owner_get_presence_message ( - FOLKS_PRESENCE_OWNER (priv->persona)); - } + return folks_presence_owner_get_presence_message ( + FOLKS_PRESENCE_OWNER (priv->persona)); + + if (priv->tp_contact != NULL) + return tp_contact_get_presence_message (priv->tp_contact); return NULL; } |