Clean up final nits
This commit is contained in:
parent
9ab1296131
commit
eaddfb4f73
3 changed files with 14 additions and 14 deletions
|
|
@ -69,10 +69,8 @@ RoomDirectoryModel::setSearchTerm(const QString &f)
|
|||
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);
|
||||
return !room_id.isEmpty() && !cache::getRoomInfo({room_id.toStdString()}).count(room_id);
|
||||
}
|
||||
|
||||
std::vector<std::string>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue