telepathy-rakia: Use tp_cm_message_set_sender instead of deprecated tp_message_set_handle
Simon McVittie
smcv at kemper.freedesktop.org
Thu May 10 05:40:11 PDT 2012
Module: telepathy-rakia
Branch: master
Commit: 1edfab19f5c3abb4bc985af35dcceea82a65e7f3
URL: http://cgit.freedesktop.org/telepathy/telepathy-rakia/commit/?id=1edfab19f5c3abb4bc985af35dcceea82a65e7f3
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Thu May 10 13:18:26 2012 +0100
Use tp_cm_message_set_sender instead of deprecated tp_message_set_handle
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49732
Signed-off-by: Simon McVittie <simon.mcvittie at collabora.co.uk>
Reviewed-by: Xavier Claessens <xavier.claessens at collabora.co.uk>
---
rakia/text-channel.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/rakia/text-channel.c b/rakia/text-channel.c
index 6559fd5..a75027f 100644
--- a/rakia/text-channel.c
+++ b/rakia/text-channel.c
@@ -763,8 +763,7 @@ delivery_report (RakiaTextChannel *self,
msg = tp_cm_message_new (base_conn, 1);
- tp_message_set_handle (msg, 0, "message-sender", TP_HANDLE_TYPE_CONTACT,
- priv->handle);
+ tp_cm_message_set_sender (msg, priv->handle);
tp_message_set_uint32 (msg, 0, "message-type",
TP_CHANNEL_TEXT_MESSAGE_TYPE_DELIVERY_REPORT);
@@ -898,8 +897,7 @@ void rakia_text_channel_receive(RakiaTextChannel *chan,
DEBUG ("Received message from contact %u: %s", sender, text);
/* Header */
- tp_message_set_handle (msg, 0, "message-sender", TP_HANDLE_TYPE_CONTACT,
- sender);
+ tp_cm_message_set_sender (msg, sender);
tp_message_set_int64 (msg, 0, "message-received", time (NULL));
hdr_date_sent = sip_date (sip);
More information about the telepathy-commits
mailing list