summary refs log tree commit diff
path: root/include/RoomList.h
diff options
context:
space:
mode:
authorMax Sandholm <max@sandholm.org>2018-01-09 15:07:32 +0200
committermujx <mujx@users.noreply.github.com>2018-01-09 15:07:32 +0200
commit312df6f3bbcba0ad502864b13f9c51b4854ea2ce (patch)
treed43396836cb2ba21b13f218a6d25a7c82049338b /include/RoomList.h
parentMake usernames in timeline less bold (diff)
downloadnheko-312df6f3bbcba0ad502864b13f9c51b4854ea2ce.tar.xz
Communities (#195)
Diffstat (limited to 'include/RoomList.h')
-rw-r--r--include/RoomList.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/RoomList.h b/include/RoomList.h

index 6b2151a2..d10cf5db 100644 --- a/include/RoomList.h +++ b/include/RoomList.h
@@ -64,6 +64,8 @@ public: const QString &room_id); void addInvitedRoom(const QString &room_id, const mtx::responses::InvitedRoom &room); void removeRoom(const QString &room_id, bool reset); + void setFilterRooms(bool filterRooms); + void setRoomFilter(QList<QString> room_ids); signals: void roomChanged(const QString &room_id); @@ -105,6 +107,10 @@ private: QSharedPointer<dialogs::LeaveRoom> leaveRoomDialog_; QMap<QString, QSharedPointer<RoomInfoListItem>> rooms_; + QString selectedRoom_; + + bool filterRooms_ = false; + QList<QString> roomFilter_ = QList<QString>(); // which rooms to include in the room list QSharedPointer<MatrixClient> client_; QSharedPointer<Cache> cache_;