decord/source/modules/replies/PendingReplyActionCreators.tsx
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

30 lines
1.4 KiB
TypeScript

// Module ID: 11601
// Function ID: 11602
// Name: createPendingReply
// Dependencies: [706, 2]
// Exports: createPendingReply, createShallowPendingReply, deletePendingReply, setPendingReplyShouldMention
// Module 11601 (createPendingReply)
import set from "set" /* 2 */;
import dispatcherDefault from "dispatcher" /* 706 */;
const result = set.fileFinishedImporting("modules/replies/PendingReplyActionCreators.tsx");
export const createPendingReply = function createPendingReply(arg0) {
({ message, channel, shouldMention, showMentionToggle, source, mediaMention } = arg0);
dispatcherDefault.dispatch({ type: "CREATE_PENDING_REPLY", message, channel, shouldMention, showMentionToggle, source, mediaMention });
};
export const createShallowPendingReply = function createShallowPendingReply(arg0) {
({ messageId, channel, shouldMention, showMentionToggle } = arg0);
return dispatcherDefault.dispatch({ type: "CREATE_SHALLOW_PENDING_REPLY", messageId, channel, shouldMention, showMentionToggle });
};
export const setPendingReplyShouldMention = function setPendingReplyShouldMention(id, shouldMention) {
let obj = dispatcherDefault;
obj = { type: "SET_PENDING_REPLY_SHOULD_MENTION", channelId: id, shouldMention };
obj.dispatch(obj);
};
export const deletePendingReply = function deletePendingReply(id) {
let obj = dispatcherDefault;
obj = { type: "DELETE_PENDING_REPLY", channelId: id };
obj.dispatch(obj);
};