Notify story creator for replies

This commit is contained in:
Jamie Kyle 2022-10-11 10:59:02 -07:00 committed by GitHub
parent 512d655d32
commit 25bc16300c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 250 additions and 135 deletions

View file

@ -18,12 +18,13 @@ import type { LocalizerType } from '../types/Util';
type NotificationDataType = Readonly<{
conversationId: string;
storyId?: string;
messageId: string;
senderTitle: string;
message: string;
notificationIconUrl?: undefined | string;
isExpiringMessage: boolean;
reaction: {
reaction?: {
emoji: string;
targetAuthorUuid: string;
targetTimestamp: number;
@ -268,6 +269,7 @@ class NotificationService extends EventEmitter {
const {
conversationId,
storyId,
messageId,
senderTitle,
message,
@ -340,7 +342,7 @@ class NotificationService extends EventEmitter {
message: notificationMessage,
silent: !shouldPlayNotificationSound,
onNotificationClick: () => {
this.emit('click', conversationId, messageId);
this.emit('click', conversationId, messageId, storyId);
},
});
}