| 424 | } |
| 425 | |
| 426 | std::variant<bool, StringVariable> |
| 427 | ChatMessageProperty::GetDefaultValue(const char *id) |
| 428 | { |
| 429 | auto it = std::find_if(_supportedProperties.begin(), |
| 430 | _supportedProperties.end(), |
| 431 | [id](const PropertyInfo &pi) { |
| 432 | return std::string(pi._id) == id; |
| 433 | }); |
| 434 | if (it == _supportedProperties.end()) { |
| 435 | return ""; |
| 436 | } |
| 437 | return it->_defaultValue; |
| 438 | } |
| 439 | |
| 440 | std::variant<bool, StringVariable> ChatMessageProperty::GetDefaultValue() const |
| 441 | { |
no test coverage detected