mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Merge pull request #594 from pcworld/narrow-view-notification
Fix notifications in narrow view when content is hidden
This commit is contained in:
commit
1ace482c74
2 changed files with 7 additions and 4 deletions
|
@ -1197,6 +1197,12 @@ ChatPage::getProfileInfo()
|
|||
});
|
||||
}
|
||||
|
||||
bool
|
||||
ChatPage::isRoomActive(const QString &room_id)
|
||||
{
|
||||
return isActiveWindow() && content_->isVisible() && currentRoom() == room_id;
|
||||
}
|
||||
|
||||
void
|
||||
ChatPage::hideSideBars()
|
||||
{
|
||||
|
|
|
@ -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>;
|
||||
|
|
Loading…
Reference in a new issue