Commit e0a176f8 authored by Antonio Rojas's avatar Antonio Rojas
Browse files

Task manager badge: ignore events from channels with disabled notifications

Getting notified (one way or another) about events on channels for which the user has explicitly disabled notifications seems counter-intuitive

BUG: 451814
parent 3c3e8eb1
Pipeline #154581 passed with stage
in 1 minute and 56 seconds
......@@ -709,6 +709,9 @@ int ChatWindow::unseenEventsCount() const
void ChatWindow::activateTabNotification(Konversation::TabNotifyType type)
{
if (!notificationsEnabled())
return;
MainWindow* mainWindow = Application::instance()->getMainWindow();
ViewContainer* viewContainer = mainWindow->getViewContainer();
if ((viewContainer->getFrontView() != this) || !mainWindow->isActiveWindow()) {
......@@ -737,9 +740,6 @@ void ChatWindow::activateTabNotification(Konversation::TabNotifyType type)
}
}
if (!notificationsEnabled())
return;
if(type > m_currentTabNotify)
return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment