mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 05:16:28 +03:00
api: dc_accounts_set_push_device_token and dc_get_push_state APIs
This commit is contained in:
@@ -90,6 +90,10 @@ impl Session {
|
||||
self.capabilities.can_metadata
|
||||
}
|
||||
|
||||
pub fn can_push(&self) -> bool {
|
||||
self.capabilities.can_push
|
||||
}
|
||||
|
||||
/// Returns the names of all folders on the IMAP server.
|
||||
pub async fn list_folders(&mut self) -> Result<Vec<async_imap::types::Name>> {
|
||||
let list = self.list(Some(""), Some("*")).await?.try_collect().await?;
|
||||
|
||||
Reference in New Issue
Block a user