Notification improvements
This commit is contained in:
parent
04a4e6e5ff
commit
d2ef82686d
16 changed files with 408 additions and 410 deletions
|
@ -54,6 +54,7 @@ import { migrateColor } from '../util/migrateColor';
|
|||
import { isNotNil } from '../util/isNotNil';
|
||||
import { dropNull } from '../util/dropNull';
|
||||
import { ourProfileKeyService } from '../services/ourProfileKey';
|
||||
import { notificationService } from '../services/notifications';
|
||||
import { getSendOptions } from '../util/getSendOptions';
|
||||
import { isConversationAccepted } from '../util/isConversationAccepted';
|
||||
import { markConversationRead } from '../util/markConversationRead';
|
||||
|
@ -4847,7 +4848,7 @@ export class ConversationModel extends window.Backbone
|
|||
): Promise<void> {
|
||||
// As a performance optimization don't perform any work if notifications are
|
||||
// disabled.
|
||||
if (!window.Whisper.Notifications.isEnabled) {
|
||||
if (!notificationService.isEnabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -4900,7 +4901,7 @@ export class ConversationModel extends window.Backbone
|
|||
const messageId = message.id;
|
||||
const isExpiringMessage = Message.hasExpiration(messageJSON);
|
||||
|
||||
window.Whisper.Notifications.add({
|
||||
notificationService.add({
|
||||
senderTitle,
|
||||
conversationId,
|
||||
notificationIconUrl,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue