mirror of
https://github.com/chatmail/core.git
synced 2026-04-24 08:56:29 +03:00
introduce set_stock_translation and remove call to DC_EVENT_GET_STRING
This commit is contained in:
@@ -63,6 +63,7 @@ pub struct Context {
|
||||
pub running_state: Arc<RwLock<RunningState>>,
|
||||
/// Mutex to avoid generating the key for the user more than once.
|
||||
pub generating_key_mutex: Mutex<()>,
|
||||
pub translated_stockstrings: HashMap<usize, String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq, Eq)]
|
||||
@@ -145,6 +146,7 @@ impl Context {
|
||||
probe_imap_network: Arc::new(RwLock::new(false)),
|
||||
perform_inbox_jobs_needed: Arc::new(RwLock::new(false)),
|
||||
generating_key_mutex: Mutex::new(()),
|
||||
translated_stockstrings: HashMap::new(),
|
||||
};
|
||||
|
||||
ensure!(
|
||||
|
||||
Reference in New Issue
Block a user