diff --git a/lib/shared/dm-ops/send-reaction-message-spec.js b/lib/shared/dm-ops/send-reaction-message-spec.js --- a/lib/shared/dm-ops/send-reaction-message-spec.js +++ b/lib/shared/dm-ops/send-reaction-message-spec.js @@ -9,6 +9,7 @@ import { createRepliesCountUpdate } from './dm-op-utils.js'; import type { DMSendReactionMessageOperation } from '../../types/dm-ops.js'; import { messageTypes } from '../../types/message-types-enum.js'; +import type { NotificationsCreationData } from '../../types/notif-types.js'; import { updateTypes } from '../../types/update-types-enum.js'; import type { ClientUpdateInfo } from '../../types/update-types.js'; @@ -77,6 +78,25 @@ }, }; }, + notificationsCreationData( + dmOp: DMSendReactionMessageOperation, + ): NotificationsCreationData { + const { threadID, creatorID, time, targetMessageID, reaction, action } = + dmOp; + return { + messageDatas: [ + { + type: messageTypes.REACTION, + threadID, + creatorID, + time, + targetMessageID, + reaction, + action, + }, + ], + }; + }, }); export { sendReactionMessageSpec };