summaryrefslogtreecommitdiff
path: root/rakia/text-channel.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2012-05-10 13:18:26 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2012-05-10 13:39:53 +0100
commit1edfab19f5c3abb4bc985af35dcceea82a65e7f3 (patch)
treeb7cc8aa34172038c76bd35535cc35411aca6308c /rakia/text-channel.c
parent69fcfb759d7c24a67729ccafcab0f21abebca055 (diff)
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@collabora.co.uk> Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
Diffstat (limited to 'rakia/text-channel.c')
-rw-r--r--rakia/text-channel.c6
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);