1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:57:44 +00:00

Mail: Fetch mails with their sequence number

The FETCH response doesn't have return the sequence in order, or at very
least one of my mail providers doesn't do it.
This commit is contained in:
Karol Kosek 2023-08-29 15:44:13 +02:00 committed by Andrew Kaster
parent 720c27efbd
commit 0132c30eda
3 changed files with 11 additions and 3 deletions

View file

@ -57,5 +57,7 @@ GUI::Variant InboxModel::data(GUI::ModelIndex const& index, GUI::ModelRole role)
if (!value.seen)
return Gfx::FontDatabase::default_font().bold_variant();
}
if (role == static_cast<GUI::ModelRole>(InboxModelCustomRole::Sequence))
return value.sequence_number;
return {};
}