[folks] Make the TpTest CM emit alias and presence updates.
- From: Travis Reitter <treitter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] Make the TpTest CM emit alias and presence updates.
- Date: Wed, 6 Oct 2010 18:12:39 +0000 (UTC)
commit 595e1a2c2975a828fa62e7e58e8cedb113a9b16f
Author: Travis Reitter <travis reitter collabora co uk>
Date: Tue Oct 5 16:55:13 2010 -0700
Make the TpTest CM emit alias and presence updates.
.../telepathy/contactlist/contact-list-manager.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/tests/lib/telepathy/contactlist/contact-list-manager.c b/tests/lib/telepathy/contactlist/contact-list-manager.c
index 6564791..b24c8fc 100644
--- a/tests/lib/telepathy/contactlist/contact-list-manager.c
+++ b/tests/lib/telepathy/contactlist/contact-list-manager.c
@@ -1036,6 +1036,8 @@ send_updated_roster (TpTestContactListManager *self,
}
else
{
+ TpHandle handle;
+
g_message ("Transmitting new state of contact %s to server", identifier);
g_message ("\talias = %s", d->alias);
g_message ("\tcan see our presence = %s",
@@ -1063,6 +1065,15 @@ send_updated_roster (TpTestContactListManager *self,
tp_handle_inspect (self->priv->group_repo, member));
}
}
+
+ handle = tp_handle_ensure (self->priv->contact_repo, d->id, NULL, NULL);
+ /* XXX: ideally, we'd only do this if thse specific details really
+ * changed, but it's not terribly unrealistic to think some servers or CMs
+ * would make this mistake as well. */
+ g_signal_emit (self, signals[ALIAS_UPDATED], 0, handle);
+ g_signal_emit (self, signals[PRESENCE_UPDATED], 0, handle);
+
+ tp_handle_unref (self->priv->contact_repo, handle);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]