mirror of
https://github.com/chatmail/core.git
synced 2026-04-24 08:56:29 +03:00
make accounts sortable
This commit is contained in:
@@ -272,6 +272,9 @@ pub struct InnerContext {
|
||||
|
||||
creation_time: tools::Time,
|
||||
|
||||
/// Accounts with higher numbers are returned at beginning of get_all().
|
||||
pub(crate) sort_number: u32,
|
||||
|
||||
/// The text of the last error logged and emitted as an event.
|
||||
/// If the ui wants to display an error after a failure,
|
||||
/// `last_error` should be used to avoid races with the event thread.
|
||||
@@ -427,6 +430,7 @@ impl Context {
|
||||
|
||||
let inner = InnerContext {
|
||||
id,
|
||||
sort_number: 0,
|
||||
blobdir,
|
||||
running_state: RwLock::new(Default::default()),
|
||||
sql: Sql::new(dbfile),
|
||||
|
||||
Reference in New Issue
Block a user