2 files changed, 7 insertions, 4 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()
{
diff --git a/src/ChatPage.h b/src/ChatPage.h
index 84e7cdff..a7489455 100644
--- a/src/ChatPage.h
+++ b/src/ChatPage.h
@@ -207,10 +207,7 @@ private:
void getProfileInfo();
//! Check if the given room is currently open.
- bool isRoomActive(const QString &room_id)
- {
- return isActiveWindow() && currentRoom() == room_id;
- }
+ bool isRoomActive(const QString &room_id);
using UserID = QString;
using Membership = mtx::events::StateEvent<mtx::events::state::Member>;
|