summary refs log tree commit diff
path: root/src/dialogs/RoomSettings.cpp
diff options
context:
space:
mode:
authorWeblate <noreply@weblate.org>2020-09-13 17:20:51 -0400
committerWeblate <noreply@weblate.org>2020-09-13 17:20:51 -0400
commitb5669310e5d272418480def6d0a78ad26eda6c72 (patch)
tree62e3681090e7d5d9ecc502223cd63037bc86d5ba /src/dialogs/RoomSettings.cpp
parentAdd simpified chinese translations (diff)
parentMerge pull request #275 from Chethan2k1/master (diff)
downloadnheko-b5669310e5d272418480def6d0a78ad26eda6c72.tar.xz
Merge branch 'master' of github.com:Nheko-Reborn/nheko
Diffstat (limited to 'src/dialogs/RoomSettings.cpp')
-rw-r--r--src/dialogs/RoomSettings.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dialogs/RoomSettings.cpp b/src/dialogs/RoomSettings.cpp

index 26aece32..822b7218 100644 --- a/src/dialogs/RoomSettings.cpp +++ b/src/dialogs/RoomSettings.cpp
@@ -151,7 +151,7 @@ EditModal::applyClicked() state::Name body; body.name = newName.toStdString(); - http::client()->send_state_event<state::Name, EventType::RoomName>( + http::client()->send_state_event( roomId_.toStdString(), body, [proxy, newName](const mtx::responses::EventId &, mtx::http::RequestErr err) { @@ -169,7 +169,7 @@ EditModal::applyClicked() state::Topic body; body.topic = newTopic.toStdString(); - http::client()->send_state_event<state::Topic, EventType::RoomTopic>( + http::client()->send_state_event( roomId_.toStdString(), body, [proxy](const mtx::responses::EventId &, mtx::http::RequestErr err) { @@ -694,7 +694,7 @@ RoomSettings::updateAccessRules(const std::string &room_id, startLoadingSpinner(); resetErrorLabel(); - http::client()->send_state_event<state::JoinRules, EventType::RoomJoinRules>( + http::client()->send_state_event( room_id, join_rule, [this, room_id, guest_access](const mtx::responses::EventId &, @@ -708,7 +708,7 @@ RoomSettings::updateAccessRules(const std::string &room_id, return; } - http::client()->send_state_event<state::GuestAccess, EventType::RoomGuestAccess>( + http::client()->send_state_event( room_id, guest_access, [this](const mtx::responses::EventId &, mtx::http::RequestErr err) { @@ -843,7 +843,7 @@ RoomSettings::updateAvatar() avatar_event.image_info.size = size; avatar_event.url = res.content_uri; - http::client()->send_state_event<state::Avatar, EventType::RoomAvatar>( + http::client()->send_state_event( room_id, avatar_event, [content = std::move(content), proxy = std::move(proxy)](