decord/source/modules/replies/PendingReplyActionCreators.tsx

31 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 10898
// Function ID: 10899
2026-07-20 16:05:17 +00:00
// Name: createPendingReply
2026-07-29 08:29:29 +00:00
// Dependencies: [709, 2]
2026-07-20 16:05:17 +00:00
// Exports: createPendingReply, createShallowPendingReply, deletePendingReply, setPendingReplyShouldMention
2026-08-24 06:08:38 +00:00
// Module 10898 (createPendingReply)
import set from "set" /* 2 */;
import dispatcherDefault from "dispatcher" /* 709 */;
const result = set.fileFinishedImporting("modules/replies/PendingReplyActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export const createPendingReply = function createPendingReply(arg0) {
({ message, channel, shouldMention, showMentionToggle, source, mediaMention } = arg0);
2026-08-24 06:08:38 +00:00
dispatcherDefault.dispatch({ type: "CREATE_PENDING_REPLY", message, channel, shouldMention, showMentionToggle, source, mediaMention });
2026-07-20 16:05:17 +00:00
};
export const createShallowPendingReply = function createShallowPendingReply(arg0) {
({ messageId, channel, shouldMention, showMentionToggle } = arg0);
2026-08-24 06:08:38 +00:00
return dispatcherDefault.dispatch({ type: "CREATE_SHALLOW_PENDING_REPLY", messageId, channel, shouldMention, showMentionToggle });
2026-07-20 16:05:17 +00:00
};
export const setPendingReplyShouldMention = function setPendingReplyShouldMention(id, shouldMention) {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-20 16:05:17 +00:00
obj = { type: "SET_PENDING_REPLY_SHOULD_MENTION", channelId: id, shouldMention };
obj.dispatch(obj);
};
export const deletePendingReply = function deletePendingReply(id) {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-20 16:05:17 +00:00
obj = { type: "DELETE_PENDING_REPLY", channelId: id };
obj.dispatch(obj);
};