Fix notifications in narrow view when content is hidden
In narrow view, a room can be selected even if the view currently only shows the room list and the timeline is hidden. This commit ensures that in this case, notifications are not suppressed.
This commit is contained in:
parent
72a2cfea7b
commit
010debe3e4
@ -1197,6 +1197,12 @@ ChatPage::getProfileInfo()
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
ChatPage::isRoomActive(const QString &room_id)
|
||||||
|
{
|
||||||
|
return isActiveWindow() && content_->isVisible() && currentRoom() == room_id;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ChatPage::hideSideBars()
|
ChatPage::hideSideBars()
|
||||||
{
|
{
|
||||||
|
@ -207,10 +207,7 @@ private:
|
|||||||
void getProfileInfo();
|
void getProfileInfo();
|
||||||
|
|
||||||
//! Check if the given room is currently open.
|
//! Check if the given room is currently open.
|
||||||
bool isRoomActive(const QString &room_id)
|
bool isRoomActive(const QString &room_id);
|
||||||
{
|
|
||||||
return isActiveWindow() && currentRoom() == room_id;
|
|
||||||
}
|
|
||||||
|
|
||||||
using UserID = QString;
|
using UserID = QString;
|
||||||
using Membership = mtx::events::StateEvent<mtx::events::state::Member>;
|
using Membership = mtx::events::StateEvent<mtx::events::state::Member>;
|
||||||
|
Loading…
Reference in New Issue
Block a user