telepathy-rakia: Use tp_cm_message_new instead of deprecated/ misleading tp_message_new

Simon McVittie smcv at kemper.freedesktop.org
Thu May 10 05:40:11 PDT 2012


Module: telepathy-rakia
Branch: master
Commit: 69fcfb759d7c24a67729ccafcab0f21abebca055
URL:    http://cgit.freedesktop.org/telepathy/telepathy-rakia/commit/?id=69fcfb759d7c24a67729ccafcab0f21abebca055

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Thu May 10 13:18:12 2012 +0100

Use tp_cm_message_new instead of deprecated/misleading tp_message_new

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 |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/rakia/text-channel.c b/rakia/text-channel.c
index 589647c..6559fd5 100644
--- a/rakia/text-channel.c
+++ b/rakia/text-channel.c
@@ -761,7 +761,7 @@ delivery_report (RakiaTextChannel *self,
 
   base_conn = (TpBaseConnection *) priv->conn;
 
-  msg = tp_message_new (base_conn, 1, 1);
+  msg = tp_cm_message_new (base_conn, 1);
 
   tp_message_set_handle (msg, 0, "message-sender", TP_HANDLE_TYPE_CONTACT,
       priv->handle);
@@ -893,7 +893,7 @@ void rakia_text_channel_receive(RakiaTextChannel *chan,
   sip_date_t *hdr_date_sent;
 
   base_conn = (TpBaseConnection *) priv->conn;
-  msg = tp_message_new (base_conn, 2, 2);
+  msg = tp_cm_message_new (base_conn, 2);
 
   DEBUG ("Received message from contact %u: %s", sender, text);
 



More information about the telepathy-commits mailing list