public function make_admin(string $id_chat, string $id_user): bool
  {
    if ( $this->is_admin($id_chat) ){
      return (bool)$this->db->update_ignore('bbn_chats_users', [
        'admin' => 1
      ], [
        'id_chat' => $id_chat,
        'id_user' => $id_user,
      ]);
    }
    return false;
  }
public function make_admin(string $id_chat, string $id_user): bool
  {
    if ( $this->is_admin($id_chat) ){
      return (bool)$this->db->update_ignore('bbn_chats_users', [
        'admin' => 1
      ], [
        'id_chat' => $id_chat,
        'id_user' => $id_user,
      ]);
    }
    return false;
  }
public function make_admin ( string $ id_chat , string $ id_user ) : bool { if ( $ this -> is_admin ( $ id_chat ) ) { return ( bool ) $ this -> db -> update_ignore ( 'bbn_chats_users' , [ 'admin' => 1 ] , [ 'id_chat' => $ id_chat , 'id_user' => $ id_user , ] ) ; } return false ; }
Makes the given participant an admin of the given chat provided the current user is admin of this chat.

@param string $id_chat
@param string $id_user
@return bool
Makes the given participant an admin of the given chat provided the current user is admin of this chat .