Merge pull request #1183 from deltachat/no-device-msg-notify

do not add system-notifications on new device messages
This commit is contained in:
cyBerta
2019-12-20 16:09:33 +01:00
committed by GitHub
@@ -46,6 +46,12 @@ class MessageNotifierPreApi23 extends MessageNotifier {
lastAudibleNotification = System.currentTimeMillis();
}
if (dcContext.getChat(chatId).isDeviceTalk()) {
// currently, we just never notify on device chat.
// esp. on first start, this is annoying.
return;
}
addMessageToNotificationState(dcContext, chatId, messageId);
synchronized (lock) {
if (notificationState.hasMultipleChats()) {