Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,6 @@ impl Context {
let unblocked_msgs = message::get_unblocked_msg_cnt(self).await;
let request_msgs = message::get_request_msg_cnt(self).await;
let contacts = Contact::get_real_cnt(self).await?;
let is_configured = self.get_config_int(Config::Configured).await?;
let proxy_enabled = self.get_config_int(Config::ProxyEnabled).await?;
let dbversion = self
.sql
Expand Down Expand Up @@ -905,7 +904,6 @@ impl Context {
.await?
.unwrap_or_else(|| "<unset>".to_string()),
);
res.insert("is_configured", is_configured.to_string());
res.insert("proxy_enabled", proxy_enabled.to_string());
res.insert("entered_account_settings", l.to_string());
res.insert("used_account_settings", l2);
Expand Down
26 changes: 26 additions & 0 deletions src/sql/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1271,6 +1271,32 @@ CREATE INDEX gossip_timestamp_index ON gossip_timestamp (chat_id, fingerprint);
.await?;
}

inc_and_check(&mut migration_version, 135)?;
if dbversion < migration_version {
sql.execute_migration(
"DELETE FROM config WHERE keyname IN (
'configured',
'configured_imap_certificate_checks',
'configured_imap_servers',
'configured_mail_port',
'configured_mail_pw',
'configured_mail_security',
'configured_mail_server',
'configured_mail_user',
'configured_send_port',
'configured_send_pw',
'configured_send_security',
'configured_send_server',
'configured_send_user',
'configured_server_flags',
'configured_smtp_certificate_checks',
'configured_smtp_servers'
)",
migration_version,
)
.await?;
}

let new_version = sql
.get_raw_config_int(VERSION_CFG)
.await?
Expand Down
Loading