[geary/wip/713530-background-sync: 6/6] Only prefetch messages that have not been seen before.
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/713530-background-sync: 6/6] Only prefetch messages that have not been seen before.
- Date: Fri, 1 Dec 2017 12:02:23 +0000 (UTC)
commit c4559f6db7176ab4b17192fa0e05fcafcc7e74a9
Author: Michael James Gratton <mike vee net>
Date: Fri Dec 1 22:46:02 2017 +1100
Only prefetch messages that have not been seen before.
* src/engine/imap-engine/imap-engine-email-prefetcher.vala
(EmailPrefetcher): Connect to email_locally_{appended,inserted} rather
than email_{appended,inserted}.
.../imap-engine/imap-engine-email-prefetcher.vala | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/engine/imap-engine/imap-engine-email-prefetcher.vala
b/src/engine/imap-engine/imap-engine-email-prefetcher.vala
index 2d1eacc..9a072fd 100644
--- a/src/engine/imap-engine/imap-engine-email-prefetcher.vala
+++ b/src/engine/imap-engine/imap-engine-email-prefetcher.vala
@@ -36,8 +36,8 @@ private class Geary.ImapEngine.EmailPrefetcher : Object {
folder.opened.connect(on_opened);
folder.closed.connect(on_closed);
- folder.email_appended.connect(on_local_expansion);
- folder.email_inserted.connect(on_local_expansion);
+ folder.email_locally_appended.connect(on_local_expansion);
+ folder.email_locally_inserted.connect(on_local_expansion);
}
~EmailPrefetcher() {
@@ -46,8 +46,8 @@ private class Geary.ImapEngine.EmailPrefetcher : Object {
folder.opened.disconnect(on_opened);
folder.closed.disconnect(on_closed);
- folder.email_appended.disconnect(on_local_expansion);
- folder.email_inserted.disconnect(on_local_expansion);
+ folder.email_locally_appended.disconnect(on_local_expansion);
+ folder.email_locally_inserted.disconnect(on_local_expansion);
}
private void on_opened(Geary.Folder.OpenState open_state) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]