Fixes for get_webxdc_blob documentation

This commit is contained in:
link2xt
2023-02-27 14:36:57 +00:00
parent d1d43e889a
commit c79ded1406

View File

@@ -670,8 +670,10 @@ impl Message {
Ok(archive)
}
/// Return file form inside an archive.
/// Return file from inside an archive.
/// Currently, this works only if the message is an webxdc instance.
///
/// `name` is the filename within the archive, e.g. `index.html`.
pub async fn get_webxdc_blob(&self, context: &Context, name: &str) -> Result<Vec<u8>> {
ensure!(self.viewtype == Viewtype::Webxdc, "No webxdc instance.");