conversation-list: hack: don't expand non-interesting mails
When mails weren't loaded from database, conversation list may happen to load mails through load_full_email function, which expands mails by default. Ideally this function shouldn't be called for these mails, but correct solution would require to store conversation in database, for now lets work around it by simply checking whether a mail needs to be expanded. Fixes https://gitlab.gnome.org/GNOME/geary/issues/396 Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
This commit is contained in:
parent
ee784379bf
commit
d3835617b2
1 changed files with 4 additions and 3 deletions
|
|
@ -612,8 +612,7 @@ public class ConversationListBox : Gtk.ListBox, Geary.BaseInterface {
|
|||
new Gee.LinkedList<Geary.Email>();
|
||||
foreach (Geary.Email email in all_email) {
|
||||
if (first_interesting == null) {
|
||||
if (email.is_unread().is_certain() ||
|
||||
email.is_flagged().is_certain()) {
|
||||
if (is_interesting(email)) {
|
||||
first_interesting = email;
|
||||
} else {
|
||||
// Inserted reversed so most recent uninteresting
|
||||
|
|
@ -899,7 +898,9 @@ public class ConversationListBox : Gtk.ListBox, Geary.BaseInterface {
|
|||
if (!this.cancellable.is_cancelled()) {
|
||||
EmailRow row = add_email(full_email);
|
||||
yield row.view.load_contacts();
|
||||
yield row.expand();
|
||||
if (is_interesting(full_email)) {
|
||||
yield row.expand();
|
||||
}
|
||||
this.search.highlight_row_if_matching(row);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue