summary refs log tree commit diff
path: root/src/ChatPage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ChatPage.cpp')
-rw-r--r--src/ChatPage.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp

index c5199ff1..1a1c1044 100644 --- a/src/ChatPage.cpp +++ b/src/ChatPage.cpp
@@ -1197,6 +1197,12 @@ ChatPage::getProfileInfo() }); } +bool +ChatPage::isRoomActive(const QString &room_id) +{ + return isActiveWindow() && content_->isVisible() && currentRoom() == room_id; +} + void ChatPage::hideSideBars() {