decord/beta/source/modules/messages/SendMessageOptionsStore.tsx
github-actions 84d017ff78 chore: update source for beta 348.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5021.js (118.4 MB)
2026-09-28 16:18:32 +00:00

46 lines
1.5 KiB
TypeScript

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