mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Fix linting
This commit is contained in:
parent
0285bf5e4e
commit
8d95532b28
1 changed files with 11 additions and 11 deletions
|
@ -314,8 +314,8 @@ UserProfile::changeAvatar()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto bin = file.peek(file.size());
|
const auto bin = file.peek(file.size());
|
||||||
const auto payload = std::string(bin.data(), bin.size());
|
const auto payload = std::string(bin.data(), bin.size());
|
||||||
|
|
||||||
isLoading_ = true;
|
isLoading_ = true;
|
||||||
emit loadingChanged();
|
emit loadingChanged();
|
||||||
|
@ -365,15 +365,15 @@ 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(
|
||||||
nhlog::net()->error("Failed to update room member state : ",
|
"Failed to update room member state : ",
|
||||||
err->matrix_error.error);
|
err->matrix_error.error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue