diff --git a/src/org/thoughtcrime/securesms/notifications/NotificationCenter.java b/src/org/thoughtcrime/securesms/notifications/NotificationCenter.java index 578090bf5..5264111f6 100644 --- a/src/org/thoughtcrime/securesms/notifications/NotificationCenter.java +++ b/src/org/thoughtcrime/securesms/notifications/NotificationCenter.java @@ -82,10 +82,8 @@ public class NotificationCenter { } private boolean requiresIndependentChannel(int chatId) { - if (Prefs.getChatRingtone(context, chatId)!=null || Prefs.getChatVibrate(context, chatId)!=Prefs.VibrateState.DEFAULT) { - return true; - } - return false; + return Prefs.getChatRingtone(context, chatId) != null + || Prefs.getChatVibrate(context, chatId) != Prefs.VibrateState.DEFAULT; } private int getLedArgb(String ledColor) {