[empathy] empathy_contact_get_presence_message: use the tp_contact if there is no persona for the contact
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] empathy_contact_get_presence_message: use the tp_contact if there is no persona for the contact
- Date: Tue, 1 Feb 2011 15:53:16 +0000 (UTC)
commit 91386d401d9385cf334cf4d879f97d7e49540bb1
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Tue Feb 1 16:48:24 2011 +0100
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).
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 76091e4..9ae2614 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]