summary refs log tree commit diff
path: root/src/ChatPage.cpp
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2021-05-29 12:11:26 +0000
committerGitHub <noreply@github.com>2021-05-29 12:11:26 +0000
commit1ace482c74c1820940f9b5de1eb5d57078d5c0ae (patch)
treef9ba5e781c4bb4afce0f078d4006bb77f1bb9175 /src/ChatPage.cpp
parentTranslated using Weblate (German) (diff)
parentFix notifications in narrow view when content is hidden (diff)
downloadnheko-1ace482c74c1820940f9b5de1eb5d57078d5c0ae.tar.xz
Merge pull request #594 from pcworld/narrow-view-notification
Fix notifications in narrow view when content is hidden
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() {