fix linting
This commit is contained in:
parent
b3f29f592b
commit
3b82b2ff97
@ -814,8 +814,8 @@ void
|
|||||||
TimelineModel::openUserProfile(QString userid, bool global)
|
TimelineModel::openUserProfile(QString userid, bool global)
|
||||||
{
|
{
|
||||||
if (global) {
|
if (global) {
|
||||||
emit openProfile(new UserProfile("",utils::localUser(),
|
emit openProfile(
|
||||||
manager_, this, globalUsername));
|
new UserProfile("", utils::localUser(), manager_, this, globalUsername));
|
||||||
} else {
|
} else {
|
||||||
emit openProfile(new UserProfile(room_id_, userid, manager_, this));
|
emit openProfile(new UserProfile(room_id_, userid, manager_, this));
|
||||||
}
|
}
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
#include "DeviceVerificationFlow.h"
|
#include "DeviceVerificationFlow.h"
|
||||||
#include "Logging.h"
|
#include "Logging.h"
|
||||||
#include "Utils.h"
|
#include "Utils.h"
|
||||||
#include <mtx/responses/common.hpp>
|
|
||||||
#include "mtx/responses/crypto.hpp"
|
#include "mtx/responses/crypto.hpp"
|
||||||
#include "timeline/TimelineModel.h"
|
#include "timeline/TimelineModel.h"
|
||||||
#include "timeline/TimelineViewManager.h"
|
#include "timeline/TimelineViewManager.h"
|
||||||
|
#include <mtx/responses/common.hpp>
|
||||||
|
|
||||||
UserProfile::UserProfile(QString roomid,
|
UserProfile::UserProfile(QString roomid,
|
||||||
QString userid,
|
QString userid,
|
||||||
@ -228,7 +228,7 @@ UserProfile::changeUsername(QString username)
|
|||||||
if (globalUserProfile()) {
|
if (globalUserProfile()) {
|
||||||
// change global
|
// change global
|
||||||
http::client()->set_displayname(
|
http::client()->set_displayname(
|
||||||
username.toStdString(), [this]( mtx::http::RequestErr err) {
|
username.toStdString(), [this](mtx::http::RequestErr err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
nhlog::net()->warn("could not change username");
|
nhlog::net()->warn("could not change username");
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user