mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 21:06:31 +03:00
refactor: flatten imports in deltachat-jsonrpc
This commit is contained in:
@@ -4,30 +4,30 @@ use std::{collections::HashMap, str::FromStr};
|
|||||||
|
|
||||||
use anyhow::{anyhow, bail, ensure, Context, Result};
|
use anyhow::{anyhow, bail, ensure, Context, Result};
|
||||||
pub use deltachat::accounts::Accounts;
|
pub use deltachat::accounts::Accounts;
|
||||||
use deltachat::message::get_msg_read_receipts;
|
use deltachat::chat::{
|
||||||
use deltachat::qr::Qr;
|
|
||||||
use deltachat::{
|
|
||||||
chat::{
|
|
||||||
self, add_contact_to_chat, forward_msgs, get_chat_media, get_chat_msgs, get_chat_msgs_ex,
|
self, add_contact_to_chat, forward_msgs, get_chat_media, get_chat_msgs, get_chat_msgs_ex,
|
||||||
marknoticed_chat, remove_contact_from_chat, Chat, ChatId, ChatItem, MessageListOptions,
|
marknoticed_chat, remove_contact_from_chat, Chat, ChatId, ChatItem, MessageListOptions,
|
||||||
ProtectionStatus,
|
ProtectionStatus,
|
||||||
},
|
|
||||||
chatlist::Chatlist,
|
|
||||||
config::Config,
|
|
||||||
constants::DC_MSG_ID_DAYMARKER,
|
|
||||||
contact::{may_be_valid_addr, Contact, ContactId, Origin},
|
|
||||||
context::get_info,
|
|
||||||
ephemeral::Timer,
|
|
||||||
imex, location,
|
|
||||||
message::{self, delete_msgs, markseen_msgs, Message, MessageState, MsgId, Viewtype},
|
|
||||||
provider::get_provider_info,
|
|
||||||
qr,
|
|
||||||
qr_code_generator::{generate_backup_qr, get_securejoin_qr_svg},
|
|
||||||
reaction::{get_msg_reactions, send_reaction},
|
|
||||||
securejoin,
|
|
||||||
stock_str::StockMessage,
|
|
||||||
webxdc::StatusUpdateSerial,
|
|
||||||
};
|
};
|
||||||
|
use deltachat::chatlist::Chatlist;
|
||||||
|
use deltachat::config::Config;
|
||||||
|
use deltachat::constants::DC_MSG_ID_DAYMARKER;
|
||||||
|
use deltachat::contact::{may_be_valid_addr, Contact, ContactId, Origin};
|
||||||
|
use deltachat::context::get_info;
|
||||||
|
use deltachat::ephemeral::Timer;
|
||||||
|
use deltachat::imex;
|
||||||
|
use deltachat::location;
|
||||||
|
use deltachat::message::get_msg_read_receipts;
|
||||||
|
use deltachat::message::{
|
||||||
|
self, delete_msgs, markseen_msgs, Message, MessageState, MsgId, Viewtype,
|
||||||
|
};
|
||||||
|
use deltachat::provider::get_provider_info;
|
||||||
|
use deltachat::qr::{self, Qr};
|
||||||
|
use deltachat::qr_code_generator::{generate_backup_qr, get_securejoin_qr_svg};
|
||||||
|
use deltachat::reaction::{get_msg_reactions, send_reaction};
|
||||||
|
use deltachat::securejoin;
|
||||||
|
use deltachat::stock_str::StockMessage;
|
||||||
|
use deltachat::webxdc::StatusUpdateSerial;
|
||||||
use sanitize_filename::is_sanitized;
|
use sanitize_filename::is_sanitized;
|
||||||
use tokio::fs;
|
use tokio::fs;
|
||||||
use tokio::sync::{watch, Mutex, RwLock};
|
use tokio::sync::{watch, Mutex, RwLock};
|
||||||
|
|||||||
Reference in New Issue
Block a user