Commit bec8141c authored by Guillaume Desmottes's avatar Guillaume Desmottes

empathy-individual-menu: no need to get the call factory

parent 934b3c38
......@@ -278,13 +278,11 @@ empathy_individual_audio_call_menu_item_activated (GtkMenuItem *item,
FolksIndividual *individual)
{
EmpathyContact *contact;
EmpathyCallFactory *factory;
contact = empathy_contact_dup_from_folks_individual (individual);
g_return_if_fail (EMPATHY_IS_CONTACT (contact));
factory = empathy_call_factory_get ();
empathy_call_factory_new_call_with_streams (contact, TRUE, FALSE,
gtk_get_current_event_time (), NULL, NULL);
g_object_unref (contact);
......@@ -323,13 +321,11 @@ empathy_individual_video_call_menu_item_activated (GtkMenuItem *item,
FolksIndividual *individual)
{
EmpathyContact *contact;
EmpathyCallFactory *factory;
contact = empathy_contact_dup_from_folks_individual (individual);
g_return_if_fail (EMPATHY_IS_CONTACT (contact));
factory = empathy_call_factory_get ();
empathy_call_factory_new_call_with_streams (contact, TRUE, TRUE,
gtk_get_current_event_time (), NULL, NULL);
g_object_unref (contact);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment