decord/alpha/source/modules/messages/SendMessageOptionsStore.tsx
github-actions e160b228c5 chore: update source for alpha 348.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4942.js (118.4 MB)
2026-09-22 07:41:18 +00:00

46 lines
1.5 KiB
TypeScript

// Module ID: 11923
// Function ID: 11924
// Name: SendMessageOptionsStore
// Dependencies: [4750, 504, 573, 2]
// Module 11923 (SendMessageOptionsStore)
import initializeDefault from "initialize" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 573 */;
import MessageConstants from "MessageConstants" /* 4750 */;
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;