mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Merge pull request #1183 from deltachat/no-device-msg-notify
do not add system-notifications on new device messages
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user