def update_room_name(self):
        """Updates self.name and returns True if room name has changed."""
        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
def update_room_name ( self ) : 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
Updates self.name and returns True if room name has changed.