[evolution-ews] Correct 'Listen for server change notification' for books and calendars



commit 4d7c61f7193a01838f5610bdd6306c6ab12f289b
Author: Milan Crha <mcrha redhat com>
Date:   Mon Mar 2 17:15:57 2015 +0100

    Correct 'Listen for server change notification' for books and calendars
    
    The fully async authentication change in the evolution-data-server
    broke the notification thread creation for books and calendars,
    the thread was not automatically run after successful connect.

 src/addressbook/e-book-backend-ews.c |    3 +++
 src/calendar/e-cal-backend-ews.c     |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/addressbook/e-book-backend-ews.c b/src/addressbook/e-book-backend-ews.c
index 81cd544..4af3389 100644
--- a/src/addressbook/e-book-backend-ews.c
+++ b/src/addressbook/e-book-backend-ews.c
@@ -4162,6 +4162,9 @@ e_book_backend_ews_authenticate_sync (EBackend *backend,
 
                e_backend_set_online (backend, TRUE);
                ebews_start_refreshing (ews_backend, TRUE);
+
+               if (!ews_backend->priv->is_gal)
+                       ebews_listen_notifications_cb (ews_backend, NULL, ews_settings);
        } else {
                ews_backend->priv->is_writable = FALSE;
                e_backend_set_online (backend, FALSE);
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index f8db976..86d4450 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -4311,6 +4311,7 @@ e_cal_backend_ews_authenticate_sync (EBackend *backend,
                PRIV_UNLOCK (cal_backend->priv);
 
                ews_start_sync (cal_backend);
+               cbews_listen_notifications_cb (cal_backend, NULL, ews_settings);
        }
 
        g_object_unref (connection);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]