introduce set_stock_translation and remove call to DC_EVENT_GET_STRING

This commit is contained in:
holger krekel
2019-10-09 09:48:24 +02:00
parent e4cca92910
commit b82af9fff3
4 changed files with 64 additions and 30 deletions

View File

@@ -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!(