MessageModel: Fix message notifications

master
Melvin Keskin 2021-05-27 16:51:07 +02:00 committed by Linus Jahn
parent 78766c1672
commit 5374c441e5
1 changed files with 2 additions and 2 deletions

View File

@ -632,10 +632,10 @@ void MessageModel::showMessageNotification(const Message &message, MessageOrigin
const auto accountJid = AccountManager::instance()->jid();
const auto chatJid = message.from();
bool userMuted = !Kaidan::instance()->notificationsMuted(chatJid);
bool userMuted = Kaidan::instance()->notificationsMuted(chatJid);
bool chatActive =
isChatCurrentChat(accountJid, chatJid) &&
QGuiApplication::applicationState() != Qt::ApplicationActive;
QGuiApplication::applicationState() == Qt::ApplicationActive;
if (!userMuted && !chatActive) {
const auto chatName = RosterModel::instance()->itemName(accountJid, chatJid);