summary refs log tree commit diff
path: root/src/SingleImagePackModel.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-08-06 04:43:56 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-08-06 04:43:56 +0200
commitcc22309c5b549d068e4cb1f4da91d346bb76562f (patch)
tree1c76cc27296a0268f7fb1c3817d9578030b87696 /src/SingleImagePackModel.cpp
parentAllow creating new packs (diff)
downloadnheko-cc22309c5b549d068e4cb1f4da91d346bb76562f.tar.xz
this is not needed for translations
Diffstat (limited to 'src/SingleImagePackModel.cpp')
-rw-r--r--src/SingleImagePackModel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SingleImagePackModel.cpp b/src/SingleImagePackModel.cpp
index dea25264..7bf55617 100644
--- a/src/SingleImagePackModel.cpp
+++ b/src/SingleImagePackModel.cpp
@@ -255,7 +255,7 @@ void
 SingleImagePackModel::save()
 {
         if (roomid_.empty()) {
-                http::client()->put_account_data(pack, [this](mtx::http::RequestErr e) {
+                http::client()->put_account_data(pack, [](mtx::http::RequestErr e) {
                         if (e)
                                 ChatPage::instance()->showNotification(
                                   tr("Failed to update image pack: {}")
@@ -268,7 +268,7 @@ SingleImagePackModel::save()
                           to_string(mtx::events::EventType::ImagePackInRoom),
                           old_statekey_,
                           nlohmann::json::object(),
-                          [this](const mtx::responses::EventId &, mtx::http::RequestErr e) {
+                          [](const mtx::responses::EventId &, mtx::http::RequestErr e) {
                                   if (e)
                                           ChatPage::instance()->showNotification(
                                             tr("Failed to delete old image pack: {}")