make lint

This commit is contained in:
Loren Burkholder 2021-07-17 13:31:38 -04:00
parent 182de32380
commit d2d5229ede
7 changed files with 72 additions and 34 deletions

View file

@ -117,29 +117,32 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QWidget *parent)
connect(this, &ChatPage::loggedOut, this, &ChatPage::logout);
// TODO: once this signal is moved, reenable this
// connect(view_manager_, &TimelineViewManager::inviteUsers, this, [this](QStringList users) {
// const auto room_id = currentRoom().toStdString();
// connect(view_manager_, &TimelineViewManager::inviteUsers, this, [this](QStringList
// users) {
// const auto room_id = currentRoom().toStdString();
// for (int ii = 0; ii < users.size(); ++ii) {
// QTimer::singleShot(ii * 500, this, [this, room_id, ii, users]() {
// const auto user = users.at(ii);
// for (int ii = 0; ii < users.size(); ++ii) {
// QTimer::singleShot(ii * 500, this, [this, room_id, ii, users]() {
// const auto user = users.at(ii);
// http::client()->invite_user(
// room_id,
// user.toStdString(),
// [this, user](const mtx::responses::RoomInvite &,
// mtx::http::RequestErr err) {
// if (err) {
// emit showNotification(
// tr("Failed to invite user: %1").arg(user));
// return;
// }
// http::client()->invite_user(
// room_id,
// user.toStdString(),
// [this, user](const mtx::responses::RoomInvite &,
// mtx::http::RequestErr err) {
// if (err) {
// emit showNotification(
// tr("Failed to invite user:
// %1").arg(user));
// return;
// }
// emit showNotification(tr("Invited user: %1").arg(user));
// });
// });
// }
// });
// emit showNotification(tr("Invited user:
// %1").arg(user));
// });
// });
// }
// });
connect(
view_manager_,

View file

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
#include "InviteesModel.h"
#include "Cache.h"

View file

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2021 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later
#ifndef INVITEESMODEL_H
#define INVITEESMODEL_H

View file

@ -430,10 +430,10 @@ TimelineViewManager::openImageOverlayInternal(QString eventId, QImage img)
});
}
//void
//TimelineViewManager::openInviteUsersDialog()
// void
// TimelineViewManager::openInviteUsersDialog()
//{
// TODO: move this somewhere where it will actually work (probably Rooms)
// TODO: move this somewhere where it will actually work (probably Rooms)
// MainWindow::instance()->openInviteUsersDialog(
// [this](const QStringList &invitees) { emit inviteUsers(invitees); });
//}