summary refs log tree commit diff
path: root/src/dialogs/RoomSettings.cpp
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-07-15 19:09:08 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-07-15 19:09:08 +0300
commit33490eddab385ca488b11d6d50683ddb6a18da6c (patch)
treef597b53c3baf0c96a0d7226f28f50740acd8b256 /src/dialogs/RoomSettings.cpp
parentUser reverse iterator instead of while loop (diff)
downloadnheko-33490eddab385ca488b11d6d50683ddb6a18da6c.tar.xz
Remove the v2 namespace from the http client
Diffstat (limited to 'src/dialogs/RoomSettings.cpp')
-rw-r--r--src/dialogs/RoomSettings.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dialogs/RoomSettings.cpp b/src/dialogs/RoomSettings.cpp

index 74d08478..3f40ae89 100644 --- a/src/dialogs/RoomSettings.cpp +++ b/src/dialogs/RoomSettings.cpp
@@ -103,7 +103,7 @@ EditModal::EditModal(const QString &roomId, QWidget *parent) state::Name body; body.name = newName.toStdString(); - http::v2::client()->send_state_event<state::Name, EventType::RoomName>( + http::client()->send_state_event<state::Name, EventType::RoomName>( roomId_.toStdString(), body, [this, newName](const mtx::responses::EventId &, @@ -122,7 +122,7 @@ EditModal::EditModal(const QString &roomId, QWidget *parent) state::Topic body; body.topic = newTopic.toStdString(); - http::v2::client()->send_state_event<state::Topic, EventType::RoomTopic>( + http::client()->send_state_event<state::Topic, EventType::RoomTopic>( roomId_.toStdString(), body, [this](const mtx::responses::EventId &, mtx::http::RequestErr err) { @@ -412,7 +412,7 @@ void RoomSettings::enableEncryption() { const auto room_id = room_id_.toStdString(); - http::v2::client()->enable_encryption( + http::client()->enable_encryption( room_id, [room_id, this](const mtx::responses::EventId &, mtx::http::RequestErr err) { if (err) { int status_code = static_cast<int>(err->status_code);