mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 13:08:48 +03:00
make lint
This commit is contained in:
parent
98b733ad26
commit
4ec0c8c9bb
2 changed files with 6 additions and 7 deletions
|
@ -3,8 +3,8 @@
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
#include "RoomDirectoryModel.h"
|
#include "RoomDirectoryModel.h"
|
||||||
#include "ChatPage.h"
|
|
||||||
#include "Cache.h"
|
#include "Cache.h"
|
||||||
|
#include "ChatPage.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
|
@ -69,14 +69,13 @@ RoomDirectoryModel::setSearchTerm(const QString &f)
|
||||||
resetDisplayedData();
|
resetDisplayedData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
RoomDirectoryModel::canJoinRoom(const QByteArray &room)
|
RoomDirectoryModel::canJoinRoom(const QByteArray &room)
|
||||||
{
|
{
|
||||||
const auto &cache = cache::roomInfo();
|
const auto &cache = cache::roomInfo();
|
||||||
const QString room_id (room);
|
const QString room_id(room);
|
||||||
const bool validRoom = !room_id.isNull() && !room_id.isEmpty();
|
const bool validRoom = !room_id.isNull() && !room_id.isEmpty();
|
||||||
return validRoom && !cache.contains(room_id);
|
return validRoom && !cache.contains(room_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<std::string>
|
std::vector<std::string>
|
||||||
|
|
|
@ -56,7 +56,7 @@ public:
|
||||||
}
|
}
|
||||||
void fetchMore(const QModelIndex &) override;
|
void fetchMore(const QModelIndex &) override;
|
||||||
|
|
||||||
Q_INVOKABLE bool canJoinRoom(const QByteArray &room);
|
Q_INVOKABLE bool canJoinRoom(const QByteArray &room);
|
||||||
Q_INVOKABLE void joinRoom(const int &index = -1);
|
Q_INVOKABLE void joinRoom(const int &index = -1);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
|
Loading…
Reference in a new issue