[WIP] Add unpublished flag for transports

This commit is contained in:
Hocuri
2026-03-15 17:36:01 +01:00
parent bf02785a36
commit d1a3d6fcca
5 changed files with 77 additions and 2 deletions

View File

@@ -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?;