Really fixes bug where FAST messages had wrong EmailLocations.
Prior commit did not completely fix the problem in the case where a remote folder open took a long time. This bulletproofs the solution, but does mean that there will be some situations where FAST messages return with EmailLocations that radically change in the near future. As the contract allows for any changes whatsoever, this is acceptable.
This commit is contained in:
parent
e995809f05
commit
b50b769e77
7 changed files with 80 additions and 17 deletions
|
|
@ -11,7 +11,7 @@ private class Geary.Sqlite.Folder : Geary.AbstractFolder, Geary.LocalFolder, Gea
|
|||
Geary.ReferenceSemantics {
|
||||
protected int manual_ref_count { get; protected set; }
|
||||
|
||||
private MailDatabase db;
|
||||
private ImapDatabase db;
|
||||
private FolderRow folder_row;
|
||||
private Geary.Imap.FolderProperties? properties;
|
||||
private MessageTable message_table;
|
||||
|
|
@ -60,7 +60,7 @@ private class Geary.Sqlite.Folder : Geary.AbstractFolder, Geary.LocalFolder, Gea
|
|||
|
||||
opened = true;
|
||||
|
||||
notify_opened(Geary.Folder.OpenState.LOCAL);
|
||||
notify_opened(Geary.Folder.OpenState.LOCAL, yield get_email_count_async(cancellable));
|
||||
}
|
||||
|
||||
public override async void close_async(Cancellable? cancellable = null) throws Error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue