Enable notifications for disappearing messages on macOS 12.0.1 and above
This commit is contained in:
parent
c8d32f0327
commit
62e9a1570a
2 changed files with 8 additions and 3 deletions
|
@ -7,6 +7,7 @@ import { Sound } from '../util/Sound';
|
|||
import {
|
||||
AudioNotificationSupport,
|
||||
getAudioNotificationSupport,
|
||||
shouldHideExpiringMessageBody,
|
||||
} from '../types/Settings';
|
||||
import * as OS from '../OS';
|
||||
import * as log from '../logging/log';
|
||||
|
@ -284,9 +285,7 @@ class NotificationService extends EventEmitter {
|
|||
notificationTitle = senderTitle;
|
||||
({ notificationIconUrl } = notificationData);
|
||||
|
||||
const shouldHideExpiringMessageBody =
|
||||
isExpiringMessage && (OS.isMacOS() || OS.isWindows());
|
||||
if (shouldHideExpiringMessageBody) {
|
||||
if (isExpiringMessage && shouldHideExpiringMessageBody()) {
|
||||
notificationMessage = i18n('newMessage');
|
||||
} else if (userSetting === NotificationSetting.NameOnly) {
|
||||
if (reaction) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue