Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3543574
D13026.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D13026.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D13026: Implement notificationsCreationData for send-reaction-message-spec
Attached
Detach File
Event Timeline
Log In to Comment