summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-10-26 01:42:01 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2023-10-26 01:42:01 +0200
commit634a247b4ccc8599b61d8b1e5a36bd342bb7e6f6 (patch)
tree16fb4cce36b08ed5f381cd6196a413e8e8417d59 /src
parentMerge pull request #1541 from NepNep21/ignore-users (diff)
downloadnheko-634a247b4ccc8599b61d8b1e5a36bd342bb7e6f6.tar.xz
Fix macos not supporting emplace of aggregates yet
Diffstat (limited to 'src')
-rw-r--r--src/ui/UserProfile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/UserProfile.cpp b/src/ui/UserProfile.cpp
index 1b66a97d..338f3658 100644
--- a/src/ui/UserProfile.cpp
+++ b/src/ui/UserProfile.cpp
@@ -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}};