summary refs log tree commit diff
path: root/src/dialogs
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-07-18 17:43:49 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-07-18 17:43:49 +0200
commit56ea89aa1133f01e356b1e7dce4322b883600e53 (patch)
tree4d9a1ec309453887b223cceea2212c431b731de6 /src/dialogs
parentReadd pagination and fix redactions (diff)
downloadnheko-56ea89aa1133f01e356b1e7dce4322b883600e53.tar.xz
Reenable sending messages
Diffstat (limited to 'src/dialogs')
-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)](