Page MenuHomePhabricator

D13026.diff
No OneTemporary

D13026.diff

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 };

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 27, 11:25 AM (8 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2712805
Default Alt Text
D13026.diff (1 KB)

Event Timeline