src/bbn/appui/chat.php
public function block($id_chat): bool
  {
    if ( $this->is_admin($id_chat) ){
      return (bool)$this->db->update('bbn_chats', ['blocked' => 1], ['id' => $id_chat]);
    }
    return false;
  }
public function block($id_chat): bool
  {
    if ( $this->is_admin($id_chat) ){
      return (bool)$this->db->update('bbn_chats', ['blocked' => 1], ['id' => $id_chat]);
    }
    return false;
  }
public function block ( $ id_chat ) : bool { if ( $ this -> is_admin ( $ id_chat ) ) { return ( bool ) $ this -> db -> update ( 'bbn_chats' , [ 'blocked' => 1 ] , [ 'id' => $ id_chat ] ) ; } return false ; }
Close a chat by setting blocked to 1.

@param $id_chat
@return bool
Close a chat by setting blocked to 1 .