Fixed critical warning when loading new messages
This commit is contained in:
parent
ab9c3f01a4
commit
cf36e062ec
1 changed files with 2 additions and 1 deletions
|
|
@ -107,7 +107,6 @@ private class Geary.GenericImapFolder : Geary.EngineFolder {
|
|||
// fetch email from earliest email to last to (a) remove any deletions and (b) update
|
||||
// any flags that may have changed
|
||||
Geary.Imap.UID? earliest_uid = yield imap_local_folder.get_earliest_uid_async(cancellable);
|
||||
int64 full_uid_count = local_properties.uid_next.value - 1 - earliest_uid.value;
|
||||
|
||||
// if no earliest UID, that means no messages in local store, so nothing to update
|
||||
if (earliest_uid == null || !earliest_uid.is_valid()) {
|
||||
|
|
@ -116,6 +115,8 @@ private class Geary.GenericImapFolder : Geary.EngineFolder {
|
|||
return true;
|
||||
}
|
||||
|
||||
int64 full_uid_count = local_properties.uid_next.value - 1 - earliest_uid.value;
|
||||
|
||||
// If no UID's, nothing to update
|
||||
if (full_uid_count <= 0 || (full_uid_count > int.MAX)) {
|
||||
debug("No valid UID range in local folder %s (count=%lld), nothing to update", to_string(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue