mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 05:16:28 +03:00
[WIP] Add unpublished flag for transports
This commit is contained in:
@@ -571,6 +571,30 @@ impl CommandApi {
|
||||
ctx.delete_transport(&addr).await
|
||||
}
|
||||
|
||||
// TODO not sure if that's a good API design,
|
||||
// but I'm also not sure about an alternative - Adding to EnteredLoginParam?
|
||||
async fn set_transport_unpublished(
|
||||
&self,
|
||||
account_id: u32,
|
||||
addr: String,
|
||||
unpublished: bool,
|
||||
) -> Result<()> {
|
||||
let ctx = self.get_context(account_id).await?;
|
||||
ctx.set_transport_unpublished(addr, unpublished).await
|
||||
}
|
||||
|
||||
// TODO not sure if that's a good API design,
|
||||
// but I'm also not sure about an alternative - Adding to EnteredLoginParam?
|
||||
async fn get_transport_unpublished(
|
||||
&self,
|
||||
account_id: u32,
|
||||
addr: String,
|
||||
unpublished: bool,
|
||||
) -> Result<()> {
|
||||
let ctx = self.get_context(account_id).await?;
|
||||
ctx.get_transport_unpublished(addr, unpublished).await
|
||||
}
|
||||
|
||||
/// Signal an ongoing process to stop.
|
||||
async fn stop_ongoing_process(&self, account_id: u32) -> Result<()> {
|
||||
let ctx = self.get_context(account_id).await?;
|
||||
|
||||
Reference in New Issue
Block a user