Do not show message notifications if disabled in settings.

This commit is contained in:
Cody Henthorne
2021-02-12 11:09:51 -05:00
parent f6aaef1434
commit 1935b0ebdd

View File

@@ -271,6 +271,10 @@ public class DefaultMessageNotifier implements MessageNotifier {
int reminderCount,
@NonNull BubbleUtil.BubbleState defaultBubbleState)
{
if (!TextSecurePreferences.isNotificationsEnabled(context)) {
return;
}
boolean isReminder = reminderCount > 0;
Cursor telcoCursor = null;
Cursor pushCursor = null;