mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
fix linting
This commit is contained in:
parent
b3f29f592b
commit
3b82b2ff97
4 changed files with 8 additions and 8 deletions
|
@ -111,7 +111,7 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QWidget *parent)
|
|||
connect(sidebarActions_, &SideBarActions::joinRoom, this, &ChatPage::joinRoom);
|
||||
connect(sidebarActions_, &SideBarActions::createRoom, this, &ChatPage::createRoom);
|
||||
|
||||
user_info_widget_ = new UserInfoWidget(sideBar_);
|
||||
user_info_widget_ = new UserInfoWidget(sideBar_);
|
||||
connect(user_info_widget_, &UserInfoWidget::openGlobalUserProfile, this, [this]() {
|
||||
view_manager_->activeTimeline()->openUserProfile("", true);
|
||||
});
|
||||
|
|
|
@ -814,8 +814,8 @@ void
|
|||
TimelineModel::openUserProfile(QString userid, bool global)
|
||||
{
|
||||
if (global) {
|
||||
emit openProfile(new UserProfile("",utils::localUser(),
|
||||
manager_, this, globalUsername));
|
||||
emit openProfile(
|
||||
new UserProfile("", utils::localUser(), manager_, this, globalUsername));
|
||||
} else {
|
||||
emit openProfile(new UserProfile(room_id_, userid, manager_, this));
|
||||
}
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
#include "DeviceVerificationFlow.h"
|
||||
#include "Logging.h"
|
||||
#include "Utils.h"
|
||||
#include <mtx/responses/common.hpp>
|
||||
#include "mtx/responses/crypto.hpp"
|
||||
#include "timeline/TimelineModel.h"
|
||||
#include "timeline/TimelineViewManager.h"
|
||||
#include <mtx/responses/common.hpp>
|
||||
|
||||
UserProfile::UserProfile(QString roomid,
|
||||
QString userid,
|
||||
|
@ -228,7 +228,7 @@ UserProfile::changeUsername(QString username)
|
|||
if (globalUserProfile()) {
|
||||
// change global
|
||||
http::client()->set_displayname(
|
||||
username.toStdString(), [this]( mtx::http::RequestErr err) {
|
||||
username.toStdString(), [this](mtx::http::RequestErr err) {
|
||||
if (err) {
|
||||
nhlog::net()->warn("could not change username");
|
||||
return;
|
||||
|
|
|
@ -94,7 +94,7 @@ public:
|
|||
UserProfile(QString roomid,
|
||||
QString userid,
|
||||
TimelineViewManager *manager_,
|
||||
TimelineModel *parent = nullptr,
|
||||
TimelineModel *parent = nullptr,
|
||||
QString globalUsername = "");
|
||||
|
||||
DeviceInfoModel *deviceList();
|
||||
|
@ -126,8 +126,8 @@ private:
|
|||
QString roomid_, userid_;
|
||||
QString globalUsername;
|
||||
DeviceInfoModel deviceList_;
|
||||
bool isUserVerified = false;
|
||||
bool hasMasterKey = false;
|
||||
bool isUserVerified = false;
|
||||
bool hasMasterKey = false;
|
||||
bool usernameEditing = false;
|
||||
TimelineViewManager *manager;
|
||||
TimelineModel *model;
|
||||
|
|
Loading…
Reference in a new issue