diff options
author | Max Sandholm <max@sandholm.org> | 2017-10-01 19:49:36 +0300 |
---|---|---|
committer | mujx <mujx@users.noreply.github.com> | 2017-10-01 19:49:36 +0300 |
commit | 7ad45d8d6448c60b4c81c80fa8d6d81afd6e4a02 (patch) | |
tree | 821124200c7dac85128790115d527791c1fc4945 /include/RoomInfoListItem.h | |
parent | ea296321c96065b2b4c354c7f06c6b776f85bf91 (diff) |
React to externally left and joined rooms, and add "leave room" button in room menu (#75)
* Initial "join room" feature.
* React correctly to remotely joined rooms.
* Leaving rooms implemented both locally using the room menu
in nheko, and reacting properly when leaving a room remotely
from another client.
Diffstat (limited to 'include/RoomInfoListItem.h')
-rw-r--r-- | include/RoomInfoListItem.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/RoomInfoListItem.h b/include/RoomInfoListItem.h index 8947ee8e..03023038 100644 --- a/include/RoomInfoListItem.h +++ b/include/RoomInfoListItem.h @@ -57,6 +57,7 @@ public: signals: void clicked(const QString &room_id); + void leaveRoom(const QString &room_id); public slots: void setPressedState(bool state); @@ -86,6 +87,7 @@ private: Menu *menu_; QAction *toggleNotifications_; + QAction *leaveRoom_; QSharedPointer<RoomSettings> roomSettings_; |