bool QMessageContentContainerId::operator==(const QMessageContentContainerId& other) const { if (isValid()) { return (other.isValid() && (toString() == other.toString())); } else { return !other.isValid(); } }