Commit 03dbe0e0 authored by Michael Gratton's avatar Michael Gratton 🤞

Don't unncessarily check for more conversations to load

The ConversationMonitor insert and remove operations don't need to check
for more to load. The client will take care of that if needed.
parent d6ca47ba
Pipeline #73058 failed with stages
in 4 minutes and 59 seconds
......@@ -38,8 +38,5 @@ private class Geary.App.InsertOperation : ConversationOperation {
this.monitor.base_folder.to_string(),
this.inserted_ids.size);
yield this.monitor.load_by_sparse_id(to_insert);
// Check to see if we need any more
this.monitor.check_window_count();
}
}
......@@ -40,12 +40,6 @@ private class Geary.App.RemoveOperation : ConversationOperation {
trimmed,
(this.source_folder == this.monitor.base_folder) ? this.removed_ids : null
);
// Check we still have enough conversations if any were
// removed
if (!removed.is_empty) {
this.monitor.check_window_count();
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment