Skip to content
Snippets Groups Projects
Commit 4ec0c8c9 authored by kamathmanu's avatar kamathmanu
Browse files

make lint

parent 98b733ad
No related branches found
No related tags found
No related merge requests found
......@@ -3,8 +3,8 @@
// SPDX-License-Identifier: GPL-3.0-or-later
#include "RoomDirectoryModel.h"
#include "ChatPage.h"
#include "Cache.h"
#include "ChatPage.h"
#include <algorithm>
......@@ -69,14 +69,13 @@ RoomDirectoryModel::setSearchTerm(const QString &f)
resetDisplayedData();
}
bool
RoomDirectoryModel::canJoinRoom(const QByteArray &room)
{
const auto &cache = cache::roomInfo();
const QString room_id (room);
const bool validRoom = !room_id.isNull() && !room_id.isEmpty();
return validRoom && !cache.contains(room_id);
const auto &cache = cache::roomInfo();
const QString room_id(room);
const bool validRoom = !room_id.isNull() && !room_id.isEmpty();
return validRoom && !cache.contains(room_id);
}
std::vector<std::string>
......
......@@ -56,7 +56,7 @@ public:
}
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);
signals:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment