Fix fix for crash in push rules

This commit is contained in:
Tobias Fella
2023-09-07 23:32:27 +02:00
parent 06134f96eb
commit f7f98c43e2

View File

@@ -1315,6 +1315,7 @@ void NeoChatRoom::updatePushNotificationState(QString type)
if (overrideRule["actions"_ls].toArray().isEmpty()) {
m_currentPushNotificationState = PushNotificationState::Mute;
Q_EMIT pushNotificationStateChanged(m_currentPushNotificationState);
return;
}
QString notifyAction = overrideRule["actions"_ls].toArray()[0].toString();
if (notifyAction == "dont_notify"_ls) {