decord/stable/source/modules/messages/SendMessageOptionsStore.tsx
github-actions e2bc0408ee chore: update source for stable 346.13
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-22 22:11:40 +00:00

46 lines
1.5 KiB
TypeScript

// Module ID: 11801
// Function ID: 11802
// Name: SendMessageOptionsStore
// Dependencies: [4629, 504, 573, 2]
// Module 11801 (SendMessageOptionsStore)
import initializeDefault from "initialize" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 573 */;
import MessageConstants from "MessageConstants" /* 4629 */;
import size from "module_2" /* 2 */;
const MessageSendLocation = MessageConstants.MessageSendLocation;
let closure_1 = {};
const Store = initializeDefault.Store;
class SendMessageOptionsStore extends Store {
}
SendMessageOptionsStore.prototype["getOptions"] = function getOptions(arg0) {
return closure_1[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;
}
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 = size.fileFinishedImporting("modules/messages/SendMessageOptionsStore.tsx");
export default sendMessageOptionsStore;