make lint
This commit is contained in:
parent
98b733ad26
commit
4ec0c8c9bb
|
@ -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,12 +69,11 @@ RoomDirectoryModel::setSearchTerm(const QString &f)
|
|||
resetDisplayedData();
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
RoomDirectoryModel::canJoinRoom(const QByteArray &room)
|
||||
{
|
||||
const auto &cache = cache::roomInfo();
|
||||
const QString room_id (room);
|
||||
const QString room_id(room);
|
||||
const bool validRoom = !room_id.isNull() && !room_id.isEmpty();
|
||||
return validRoom && !cache.contains(room_id);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue