mirror of
https://github.com/chatmail/core.git
synced 2026-05-14 04:16:30 +03:00
tweak quota display (#2616)
* resultify get_connectivity_html() * tweak quota titles, avoid confusing 'quota' wording * show bars for quota usage * skip secondady 'Storage' title, see comment for reasoning
This commit is contained in:
@@ -275,7 +275,15 @@ pub unsafe extern "C" fn dc_get_connectivity_html(
|
||||
return "".strdup();
|
||||
}
|
||||
let ctx = &*context;
|
||||
block_on(async move { ctx.get_connectivity_html().await.strdup() })
|
||||
block_on(async move {
|
||||
match ctx.get_connectivity_html().await {
|
||||
Ok(html) => html.strdup(),
|
||||
Err(err) => {
|
||||
error!(ctx, "Failed to get connectivity html: {}", err);
|
||||
"".strdup()
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
|
||||
Reference in New Issue
Block a user