Disabled support Yandex contacs in GOA due to strange behaviour of Yandex carddav

i9
Alexey Berezhok 2 years ago
parent 661cc5c0cf
commit d6dc154496

@ -1,4 +1,4 @@
From 955dfc25d92798b9c088ae92133533afa9590cdb Mon Sep 17 00:00:00 2001 From 18f4f0763dc134a05ac4e2e36a1590ce6917ff33 Mon Sep 17 00:00:00 2001
From: Alexey Berezhok <alexey.berezhok@softline.com> From: Alexey Berezhok <alexey.berezhok@softline.com>
Date: Tue, 2 May 2023 15:51:50 +0300 Date: Tue, 2 May 2023 15:51:50 +0300
Subject: [PATCH] Added yandex provider (prebuild version) Subject: [PATCH] Added yandex provider (prebuild version)
@ -352,7 +352,7 @@ index 9e5bd45..c4858b7 100644
#endif #endif
diff --git a/src/goabackend/goayandexprovider.c b/src/goabackend/goayandexprovider.c diff --git a/src/goabackend/goayandexprovider.c b/src/goabackend/goayandexprovider.c
new file mode 100644 new file mode 100644
index 0000000..c64973d index 0000000..ab74283
--- /dev/null --- /dev/null
+++ b/src/goabackend/goayandexprovider.c +++ b/src/goabackend/goayandexprovider.c
@@ -0,0 +1,369 @@ @@ -0,0 +1,369 @@
@ -426,7 +426,7 @@ index 0000000..c64973d
+ return GOA_PROVIDER_FEATURE_BRANDED | + return GOA_PROVIDER_FEATURE_BRANDED |
+ GOA_PROVIDER_FEATURE_MAIL | + GOA_PROVIDER_FEATURE_MAIL |
+ GOA_PROVIDER_FEATURE_CALENDAR | + GOA_PROVIDER_FEATURE_CALENDAR |
+ GOA_PROVIDER_FEATURE_CONTACTS | +// GOA_PROVIDER_FEATURE_CONTACTS |
+ GOA_PROVIDER_FEATURE_FILES; + GOA_PROVIDER_FEATURE_FILES;
+} +}
+ +
@ -457,7 +457,7 @@ index 0000000..c64973d
+static guint +static guint
+get_credentials_generation (GoaProvider *provider) +get_credentials_generation (GoaProvider *provider)
+{ +{
+ return 22; + return 24;
+} +}
+ +
+static const gchar * +static const gchar *
@ -635,10 +635,10 @@ index 0000000..c64973d
+ g_free (uri_caldav); + g_free (uri_caldav);
+ +
+ /* Contacts */ + /* Contacts */
+ contacts_enabled = g_key_file_get_boolean (key_file, group, "ContactsEnabled", NULL); + // contacts_enabled = g_key_file_get_boolean (key_file, group, "ContactsEnabled", NULL);
+ uri_carddav = g_strconcat ("https://carddav.yandex.ru/", NULL); + // uri_carddav = g_strconcat ("https://carddav.yandex.ru/", NULL);
+ goa_object_skeleton_attach_contacts (object, uri_carddav, contacts_enabled, FALSE); + // goa_object_skeleton_attach_contacts (object, uri_carddav, contacts_enabled, FALSE);
+ g_free (uri_carddav); + // g_free (uri_carddav);
+ +
+ /* Files */ + /* Files */
+ files_enabled = g_key_file_get_boolean (key_file, group, "FilesEnabled", NULL); + files_enabled = g_key_file_get_boolean (key_file, group, "FilesEnabled", NULL);
@ -662,10 +662,10 @@ index 0000000..c64973d
+ "notify::calendar-disabled", + "notify::calendar-disabled",
+ G_CALLBACK (goa_util_account_notify_property_cb), + G_CALLBACK (goa_util_account_notify_property_cb),
+ (gpointer) "CalendarEnabled"); + (gpointer) "CalendarEnabled");
+ g_signal_connect (account, + // g_signal_connect (account,
+ "notify::contacts-disabled", + // "notify::contacts-disabled",
+ G_CALLBACK (goa_util_account_notify_property_cb), + // G_CALLBACK (goa_util_account_notify_property_cb),
+ (gpointer) "ContactsEnabled"); + // (gpointer) "ContactsEnabled");
+ g_signal_connect (account, + g_signal_connect (account,
+ "notify::files-disabled", + "notify::files-disabled",
+ G_CALLBACK (goa_util_account_notify_property_cb), + G_CALLBACK (goa_util_account_notify_property_cb),
@ -688,7 +688,7 @@ index 0000000..c64973d
+{ +{
+ g_variant_builder_add (builder, "{ss}", "MailEnabled", "true"); + g_variant_builder_add (builder, "{ss}", "MailEnabled", "true");
+ g_variant_builder_add (builder, "{ss}", "CalendarEnabled", "true"); + g_variant_builder_add (builder, "{ss}", "CalendarEnabled", "true");
+ g_variant_builder_add (builder, "{ss}", "ContactsEnabled", "true"); + // g_variant_builder_add (builder, "{ss}", "ContactsEnabled", "true");
+ g_variant_builder_add (builder, "{ss}", "FilesEnabled", "true"); + g_variant_builder_add (builder, "{ss}", "FilesEnabled", "true");
+} +}
+ +

Loading…
Cancel
Save