diff --git a/src/app/currentconversation.cpp b/src/app/currentconversation.cpp index 891c21be5e6c372f2474603efeb1eb458fbbb972..361c46eaaa361cb5232f19ba16e1a097081a2b9e 100644 --- a/src/app/currentconversation.cpp +++ b/src/app/currentconversation.cpp @@ -258,9 +258,8 @@ CurrentConversation::updateConversationPreferences(const QString& convId) color = convInfo.preferences["color"]; } set_color(color); - if (convInfo.preferences.contains("ignoreNotifications")) { - set_ignoreNotifications(convInfo.preferences["ignoreNotifications"] == "true"); - } + set_ignoreNotifications(convInfo.preferences.contains("ignoreNotifications") + && convInfo.preferences["ignoreNotifications"] == "true"); } }