Fix macos not supporting emplace of aggregates yet

This commit is contained in:
Nicolas Werner 2023-10-26 01:42:01 +02:00
parent a583de297c
commit 634a247b4c
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -264,7 +264,7 @@ UserProfile::setIgnored(bool ignore)
std::vector<mtx::events::account_data::IgnoredUser> content;
for (const QString &item : std::as_const(old)) {
content.emplace_back(item.toStdString());
content.push_back({item.toStdString()});
}
mtx::events::account_data::IgnoredUsers payload{.users{content}};