]> git.0d.be Git - empathy.git/commitdiff
Set the DelegateToPreferredHandler hint
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 14 Jun 2011 09:12:45 +0000 (10:12 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 11 Jul 2011 12:41:03 +0000 (14:41 +0200)
This ensures that Empathy will always handle and display the channel, even if
GNOME Shel is already handling it.

https://bugzilla.gnome.org/show_bug.cgi?id=652439

libempathy/empathy-request-util.c

index 953e9827c8d698ae5fc843731ec3e42f12485c01..409fdf54a7447cc5b3ea1a5570a75be0ab9ad2b9 100644 (file)
@@ -80,6 +80,7 @@ create_text_channel (TpAccount *account,
         TP_PROP_CHANNEL_INTERFACE_SMS_SMS_CHANNEL, TRUE);
 
   req = tp_account_channel_request_new (account, request, timestamp);
+  tp_account_channel_request_set_delegate_to_preferred_handler (req, TRUE);
 
   tp_account_channel_request_ensure_channel_async (req, EMPATHY_CHAT_BUS_NAME,
       NULL, ensure_text_channel_cb, NULL);