def update_room_name(self):
        """Get room name

        Return True if the room name changed, False if not
        """
        try:
            response = self.client.api.get_room_name(self.room_id)
            if "name" in response and response["name"] != self.name:
                self.name = response["name"]
                return True
            else:
                return False
        except MatrixRequestError:
            return False
dataset/ETHPy150Open matrix-org/matrix-python-sdk/matrix_client/client.py/Room.update_room_name/original