mirror of
https://github.com/chatmail/core.git
synced 2026-09-22 13:01:21 +03:00
api!: remove provider-db handling and provider lookup APIs
BREAKING CHANGE: provider lookup APIs were removed from CFFI and JSON-RPC. also removes offline provider database code and generated provider data, provider-specific fields in configure/transport paths, and REPL providerinfo.
This commit is contained in:
@@ -5,7 +5,6 @@ use std::collections::BTreeSet;
|
||||
use std::time::Duration;
|
||||
|
||||
use anyhow::{Context as _, Result, ensure};
|
||||
use deltachat_contact_tools::EmailAddress;
|
||||
use deltachat_contact_tools::addr_cmp;
|
||||
use pgp::composed::SignedPublicKey;
|
||||
use rusqlite::OptionalExtension;
|
||||
@@ -15,7 +14,7 @@ use crate::configure::EnteredLoginParam;
|
||||
use crate::context::Context;
|
||||
use crate::key::DcKey;
|
||||
use crate::log::warn;
|
||||
use crate::provider::get_provider_info;
|
||||
|
||||
use crate::sql::Sql;
|
||||
use crate::tools::{self, Time, inc_and_check, time_elapsed};
|
||||
use crate::transport::ConfiguredLoginParam;
|
||||
@@ -1119,19 +1118,6 @@ UPDATE chats SET protected=1, type=120 WHERE type=130;"#,
|
||||
}
|
||||
|
||||
if dbversion < 71 {
|
||||
if let Ok(addr) = context.get_primary_self_addr().await {
|
||||
if let Ok(domain) = EmailAddress::new(&addr).map(|email| email.domain) {
|
||||
context
|
||||
.set_config_internal(
|
||||
Config::ConfiguredProvider,
|
||||
get_provider_info(&domain).map(|provider| provider.id),
|
||||
)
|
||||
.await?;
|
||||
} else {
|
||||
warn!(context, "Can't parse configured address: {:?}", addr);
|
||||
}
|
||||
}
|
||||
|
||||
sql.set_db_version(71).await?;
|
||||
}
|
||||
if dbversion < 72 && !sql.col_exists("msgs", "mime_modified").await? {
|
||||
|
||||
Reference in New Issue
Block a user