use tp_account_channel_request_set_sms_channel()
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 25 Feb 2014 16:31:27 +0000 (17:31 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 26 Feb 2014 10:55:39 +0000 (11:55 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=725070

libempathy/empathy-request-util.c

index fa55128..4eb8334 100644 (file)
@@ -67,9 +67,7 @@ create_text_channel (TpAccount *account,
   tp_account_channel_request_set_delegate_to_preferred_handler (req, TRUE);
 
   if (sms_channel)
-    tp_account_channel_request_set_request_property (req,
-        TP_PROP_CHANNEL_INTERFACE_SMS_SMS_CHANNEL,
-        g_variant_new_boolean (TRUE));
+    tp_account_channel_request_set_sms_channel (req, TRUE);
 
   tp_account_channel_request_ensure_channel_async (req,
       EMPATHY_CHAT_TP_BUS_NAME, NULL,