Blocks the chat as a result of explicit user action.
(self, context: &Context)
| 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?; |