|
|
@ -365,13 +365,13 @@ UserProfile::changeAvatar() |
|
|
|
void |
|
|
|
void |
|
|
|
UserProfile::updateRoomMemberState(mtx::events::state::Member member) |
|
|
|
UserProfile::updateRoomMemberState(mtx::events::state::Member member) |
|
|
|
{ |
|
|
|
{ |
|
|
|
http::client()->send_state_event( |
|
|
|
http::client()->send_state_event(roomid_.toStdString(), |
|
|
|
roomid_.toStdString(), |
|
|
|
|
|
|
|
http::client()->user_id().to_string(), |
|
|
|
http::client()->user_id().to_string(), |
|
|
|
member, |
|
|
|
member, |
|
|
|
[](mtx::responses::EventId, mtx::http::RequestErr err) { |
|
|
|
[](mtx::responses::EventId, mtx::http::RequestErr err) { |
|
|
|
if (err) |
|
|
|
if (err) |
|
|
|
nhlog::net()->error("Failed to update room member state : ", |
|
|
|
nhlog::net()->error( |
|
|
|
|
|
|
|
"Failed to update room member state : ", |
|
|
|
err->matrix_error.error); |
|
|
|
err->matrix_error.error); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|