mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 04:46:29 +03:00
api!: replace message::get_msg_info() with MsgId.get_info()
This commit is contained in:
@@ -1088,7 +1088,7 @@ pub async fn cmdline(context: Context, line: &str, chat_id: &mut ChatId) -> Resu
|
||||
"msginfo" => {
|
||||
ensure!(!arg1.is_empty(), "Argument <msg-id> missing.");
|
||||
let id = MsgId::new(arg1.parse()?);
|
||||
let res = message::get_msg_info(&context, id).await?;
|
||||
let res = id.get_info(&context).await?;
|
||||
println!("{res}");
|
||||
}
|
||||
"download" => {
|
||||
|
||||
Reference in New Issue
Block a user