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>
|
||||
|
|
|
|||
|
|
@ -71,11 +71,14 @@ signals:
|
|||
void reachedEndOfPaginationChanged();
|
||||
|
||||
public slots:
|
||||
void displayRooms(std::vector<mtx::responses::PublicRoomsChunk> rooms,
|
||||
const std::string &next_batch);
|
||||
void setMatrixServer(const QString &s = "");
|
||||
void setSearchTerm(const QString &f);
|
||||
|
||||
private slots:
|
||||
|
||||
void displayRooms(std::vector<mtx::responses::PublicRoomsChunk> rooms,
|
||||
const std::string &next_batch);
|
||||
|
||||
private:
|
||||
static constexpr size_t limit_ = 50;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue