mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 05:16:28 +03:00
show webxdc information in repl tool
This commit is contained in:
@@ -215,6 +215,14 @@ async fn log_msg(context: &Context, prefix: impl AsRef<str>, msg: &Message) {
|
|||||||
msg.get_videochat_url().unwrap_or_default(),
|
msg.get_videochat_url().unwrap_or_default(),
|
||||||
msg.get_videochat_type().unwrap_or_default()
|
msg.get_videochat_type().unwrap_or_default()
|
||||||
)
|
)
|
||||||
|
} else if msg.get_viewtype() == Viewtype::Webxdc {
|
||||||
|
match msg.get_webxdc_info(context).await {
|
||||||
|
Ok(info) => format!(
|
||||||
|
"[WEBXDC: {}, icon={}, document={}, summary={}, source_code_url={}]",
|
||||||
|
info.name, info.icon, info.document, info.summary, info.source_code_url
|
||||||
|
),
|
||||||
|
Err(err) => format!("[get_webxdc_info() failed: {}]", err),
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
"".to_string()
|
"".to_string()
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user