Closes #7015 Folder.CountChangedReason now has append and inserted
This commit is contained in:
parent
0c12afafbe
commit
13a3f4fd80
6 changed files with 7 additions and 6 deletions
|
|
@ -50,7 +50,8 @@ public interface Geary.Folder : BaseObject {
|
|||
[Flags]
|
||||
public enum CountChangeReason {
|
||||
NONE = 0,
|
||||
ADDED,
|
||||
APPENDED,
|
||||
INSERTED,
|
||||
REMOVED
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ public class Geary.SearchFolder : Geary.AbstractLocalFolder {
|
|||
Geary.Folder.CountChangeReason reason = CountChangeReason.NONE;
|
||||
|
||||
if (to_add.size > 0) {
|
||||
reason |= Geary.Folder.CountChangeReason.ADDED;
|
||||
reason |= Geary.Folder.CountChangeReason.INSERTED;
|
||||
}
|
||||
|
||||
if (to_remove.size > 0) {
|
||||
|
|
|
|||
|
|
@ -260,7 +260,7 @@ private class Geary.SmtpOutboxFolder : Geary.AbstractLocalFolder, Geary.FolderSu
|
|||
list.add(row.outbox_id);
|
||||
|
||||
notify_email_appended(list);
|
||||
notify_email_count_changed(email_count, CountChangeReason.ADDED);
|
||||
notify_email_count_changed(email_count, CountChangeReason.APPENDED);
|
||||
}
|
||||
|
||||
return row.outbox_id;
|
||||
|
|
|
|||
|
|
@ -730,7 +730,7 @@ private class Geary.ImapEngine.GenericFolder : Geary.AbstractFolder, Geary.Folde
|
|||
notify_email_locally_appended(created);
|
||||
|
||||
if (changed)
|
||||
notify_email_count_changed(remote_count, CountChangeReason.ADDED);
|
||||
notify_email_count_changed(remote_count, CountChangeReason.APPENDED);
|
||||
|
||||
debug("do_replay_appended_messages: completed for %s", to_string());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ private class Geary.ImapEngine.ExpungeEmail : Geary.ImapEngine.SendReplayOperati
|
|||
yield engine.local_folder.mark_removed_async(to_remove, false, cancellable);
|
||||
|
||||
engine.notify_email_appended(to_remove);
|
||||
engine.notify_email_count_changed(original_count, Geary.Folder.CountChangeReason.ADDED);
|
||||
engine.notify_email_count_changed(original_count, Geary.Folder.CountChangeReason.APPENDED);
|
||||
}
|
||||
|
||||
public override string describe_state() {
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ private class Geary.ImapEngine.MoveEmail : Geary.ImapEngine.SendReplayOperation
|
|||
yield engine.local_folder.mark_removed_async(to_move, false, cancellable);
|
||||
|
||||
engine.notify_email_appended(to_move);
|
||||
engine.notify_email_count_changed(original_count, Geary.Folder.CountChangeReason.ADDED);
|
||||
engine.notify_email_count_changed(original_count, Geary.Folder.CountChangeReason.APPENDED);
|
||||
}
|
||||
|
||||
public override string describe_state() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue