decord/beta/source/modules/messages/SendMessageOptionsStore.tsx

48 lines
1.6 KiB
TypeScript
Raw Permalink Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 9690
// Function ID: 9691
// Name: SendMessageOptionsStore
2026-10-12 16:32:48 +00:00
// Dependencies: [5085, 504, 584, 2]
2026-10-12 16:32:48 +00:00
// Module 9690 (SendMessageOptionsStore)
2026-10-01 14:13:23 +00:00
import get_initializedDefault from "get initialized" /* 504 */;
2026-10-07 22:43:51 +00:00
import DispatcherDefault from "Dispatcher" /* 584 */;
2026-10-12 16:32:48 +00:00
import MessageConstants from "MessageConstants" /* 5085 */;
import size from "module_2" /* 2 */;
const MessageSendLocation = MessageConstants.MessageSendLocation;
2026-10-01 14:13:23 +00:00
const Store = get_initializedDefault.Store;
class SendMessageOptionsStore extends Store {
2026-10-01 14:13:23 +00:00
getOptions(arg0) {
return closure_1[arg0];
}
}
2026-10-01 14:13:23 +00:00
const prototype = SendMessageOptionsStore.prototype;
SendMessageOptionsStore.displayName = "SendMessageOptionsStore";
2026-10-01 14:13:23 +00:00
let obj = {
MESSAGE_CREATE: function handleMessageCreate(arg0) {
2026-10-01 14:13:23 +00:00
let OTHER;
let message;
let sendMessageOptions;
({ message, sendMessageOptions } = arg0);
if (null != sendMessageOptions) {
2026-10-01 14:13:23 +00:00
const id = message.id;
const obj = { location: OTHER };
const merged = Object.assign(sendMessageOptions);
2026-10-01 14:13:23 +00:00
OTHER = sendMessageOptions.location;
const tmp = closure_1;
if (OTHER == null) {
OTHER = MessageSendLocation.OTHER;
}
2026-10-01 14:13:23 +00:00
tmp[id] = obj;
}
2026-10-01 14:13:23 +00:00
const tmp6 = null != message.nonce && message.nonce !== message.id && message.nonce in closure_1;
if (tmp6) {
delete closure_1[message.nonce];
}
}
2026-10-01 14:13:23 +00:00
};
const sendMessageOptionsStore = new SendMessageOptionsStore(DispatcherDefault, obj);
const result = size.fileFinishedImporting("modules/messages/SendMessageOptionsStore.tsx");
export default sendMessageOptionsStore;