From f7f98c43e2b0cb97b5083bdf5093026b6347b24f Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Thu, 7 Sep 2023 23:32:27 +0200 Subject: [PATCH] Fix fix for crash in push rules --- src/neochatroom.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/neochatroom.cpp b/src/neochatroom.cpp index 046fc91f5..53526126e 100644 --- a/src/neochatroom.cpp +++ b/src/neochatroom.cpp @@ -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) {