MCPcopy Create free account
hub / github.com/chatmail/core / block

Method block

src/chat.rs:360–362  ·  view source on GitHub ↗

Blocks the chat as a result of explicit user action.

(self, context: &Context)

Source from the content-addressed store, hash-verified

358
359 /// Blocks the chat as a result of explicit user action.
360 pub async fn block(self, context: &Context) -> Result<()> {
361 self.block_ex(context, Sync).await
362 }
363
364 pub(crate) async fn block_ex(self, context: &Context, sync: sync::Sync) -> Result<()> {
365 let chat = Chat::load_from_db(context, self).await?;

Calls 1

block_exMethod · 0.80