We always pass TRUE.
https://bugzilla.gnome.org/show_bug.cgi?id=725070
GHashTable *
empathy_call_create_call_request (const gchar *contact,
- gboolean initial_audio,
gboolean initial_video)
{
GHashTable *asv = tp_asv_new (
TP_HANDLE_TYPE_CONTACT,
TP_PROP_CHANNEL_TARGET_ID, G_TYPE_STRING,
contact,
+ TP_PROP_CHANNEL_TYPE_CALL_INITIAL_AUDIO, G_TYPE_BOOLEAN,
+ TRUE,
NULL);
- /* Only add InitialAudio or InitialVideo if they are true: it should work
+ /* Only add InitialVideo if it is true: it should work
* with genuinely voice-only CMs. */
- if (initial_audio)
- tp_asv_set_boolean (asv, TP_PROP_CHANNEL_TYPE_CALL_INITIAL_AUDIO,
- initial_audio);
if (initial_video)
tp_asv_set_boolean (asv, TP_PROP_CHANNEL_TYPE_CALL_INITIAL_VIDEO,
initial_video);
void
empathy_call_new_with_streams (const gchar *contact,
TpAccount *account,
- gboolean initial_audio,
gboolean initial_video,
gint64 timestamp)
{
TpAccountChannelRequest *call_req;
/* Call */
- call_request = empathy_call_create_call_request (contact,
- initial_audio,
- initial_video);
+ call_request = empathy_call_create_call_request (contact, initial_video);
call_req = tp_account_channel_request_new (account, call_request, timestamp);
/* Calls */
void empathy_call_new_with_streams (const gchar *contact,
TpAccount *account,
- gboolean initial_audio,
gboolean initial_video,
gint64 timestamp);
GHashTable * empathy_call_create_call_request (const gchar *contact,
- gboolean initial_audio,
gboolean initial_video);
TpSendingState empathy_call_channel_get_video_state (TpCallChannel *self);
DEBUG ("Try to call %s", number);
empathy_call_new_with_streams (number,
- account, TRUE, FALSE, empathy_get_current_action_time ());
+ account, FALSE, empathy_get_current_action_time ());
g_free (number);
}
empathy_call_new_with_streams (empathy_contact_get_id (contact),
empathy_contact_get_account (contact),
- TRUE, FALSE,
- empathy_get_current_action_time ());
+ FALSE, empathy_get_current_action_time ());
emit_menu_item_activated (item);
}
empathy_call_new_with_streams (empathy_contact_get_id (contact),
empathy_contact_get_account (contact),
- TRUE, TRUE,
- empathy_get_current_action_time ());
+ TRUE, empathy_get_current_action_time ());
emit_menu_item_activated (item);
}
empathy_call_new_with_streams (
empathy_contact_get_id (self->priv->selected_contact),
empathy_contact_get_account (self->priv->selected_contact),
- TRUE, video, gtk_get_current_event_time ());
+ video, gtk_get_current_event_time ());
}
static void
g_assert (contact != NULL);
empathy_call_new_with_streams (empathy_contact_get_id (contact),
- empathy_contact_get_account (contact), TRUE,
+ empathy_contact_get_account (contact),
response_id == RESPONSE_VIDEO, empathy_get_current_action_time ());
g_object_unref (individual);
account = empathy_contact_get_account (priv->contact);
request = empathy_call_create_call_request (
- empathy_contact_get_id (priv->contact),
- priv->initial_audio, priv->initial_video);
+ empathy_contact_get_id (priv->contact), priv->initial_video);
req = tp_account_channel_request_new (account, request, timestamp);