47 lines
1.6 KiB
TypeScript
47 lines
1.6 KiB
TypeScript
// Module ID: 11033
|
|
// Function ID: 11034
|
|
// Name: SendMessageOptionsStore
|
|
// Dependencies: [4830, 504, 585, 2]
|
|
|
|
// Module 11033 (SendMessageOptionsStore)
|
|
import get_initializedDefault from "get initialized" /* 504 */;
|
|
import DispatcherDefault from "Dispatcher" /* 585 */;
|
|
import MessageConstants from "MessageConstants" /* 4830 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const MessageSendLocation = MessageConstants.MessageSendLocation;
|
|
const Store = get_initializedDefault.Store;
|
|
class SendMessageOptionsStore extends Store {
|
|
getOptions(arg0) {
|
|
return closure_1[arg0];
|
|
}
|
|
}
|
|
const prototype = SendMessageOptionsStore.prototype;
|
|
SendMessageOptionsStore.displayName = "SendMessageOptionsStore";
|
|
let obj = {
|
|
MESSAGE_CREATE: function handleMessageCreate(arg0) {
|
|
let OTHER;
|
|
let message;
|
|
let sendMessageOptions;
|
|
({ message, sendMessageOptions } = arg0);
|
|
if (null != sendMessageOptions) {
|
|
const id = message.id;
|
|
const obj = { location: OTHER };
|
|
const merged = Object.assign(sendMessageOptions);
|
|
OTHER = sendMessageOptions.location;
|
|
const tmp = closure_1;
|
|
if (OTHER == null) {
|
|
OTHER = MessageSendLocation.OTHER;
|
|
}
|
|
tmp[id] = obj;
|
|
}
|
|
const tmp6 = null != message.nonce && message.nonce !== message.id && message.nonce in closure_1;
|
|
if (tmp6) {
|
|
delete closure_1[message.nonce];
|
|
}
|
|
}
|
|
};
|
|
const sendMessageOptionsStore = new SendMessageOptionsStore(DispatcherDefault, obj);
|
|
const result = size.fileFinishedImporting("modules/messages/SendMessageOptionsStore.tsx");
|
|
|
|
export default sendMessageOptionsStore;
|