decord/source/modules/messages/SendMessageOptionsStore.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

47 lines
1.5 KiB
TypeScript

// Module ID: 11668
// Function ID: 11669
// Name: getOptions
// Dependencies: [4553, 504, 573, 2]
// Module 11668 (getOptions)
import set from "set" /* 2 */;
import initializeDefault from "initialize" /* 504 */;
import dispatcherDefault from "dispatcher" /* 573 */;
import MESSAGE_GROUP_SPACING from "MESSAGE_GROUP_SPACING" /* 4553 */;
const MessageSendLocation = MESSAGE_GROUP_SPACING.MessageSendLocation;
let closure_1 = {};
const Store = initializeDefault.Store;
class SendMessageOptionsStore extends Store {
}
SendMessageOptionsStore.prototype["getOptions"] = function getOptions(arg0) {
return table[arg0];
};
SendMessageOptionsStore.displayName = "SendMessageOptionsStore";
const sendMessageOptionsStore = new SendMessageOptionsStore(dispatcherDefault, {
MESSAGE_CREATE: function handleMessageCreate(arg0) {
({ message, sendMessageOptions } = arg0);
if (null != sendMessageOptions) {
const obj = {};
const merged = Object.assign(sendMessageOptions);
let OTHER = sendMessageOptions.location;
if (OTHER == null) {
OTHER = MessageSendLocation.OTHER;
}
obj.location = OTHER;
closure_1[message.id] = obj;
const tmp3 = closure_1;
}
let tmp8 = null != message.nonce && message.nonce !== message.id;
if (tmp8) {
tmp8 = message.nonce in closure_1;
}
if (tmp8) {
const nonce = message.nonce;
delete tmp2[tmp];
}
}
});
const result = set.fileFinishedImporting("modules/messages/SendMessageOptionsStore.tsx");
export default sendMessageOptionsStore;