decord/alpha/source/modules/messages/SendMessageOptionsStore.tsx

47 lines
1.5 KiB
TypeScript
Raw Normal View History

// Module ID: 12006
// Function ID: 12007
// Name: SendMessageOptionsStore
// Dependencies: [4822, 504, 573, 2]
2026-07-23 10:11:24 +00:00
// Module 12006 (SendMessageOptionsStore)
import initializeDefault from "initialize" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 573 */;
import MessageConstants from "MessageConstants" /* 4822 */;
import size from "module_2" /* 2 */;
2026-07-20 16:05:17 +00:00
const MessageSendLocation = MessageConstants.MessageSendLocation;
2026-07-29 08:29:29 +00:00
let closure_1 = {};
2026-08-24 06:08:38 +00:00
const Store = initializeDefault.Store;
2026-07-29 08:29:29 +00:00
class SendMessageOptionsStore extends Store {
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
SendMessageOptionsStore.prototype["getOptions"] = function getOptions(arg0) {
return closure_1[arg0];
2026-07-29 08:29:29 +00:00
};
SendMessageOptionsStore.displayName = "SendMessageOptionsStore";
const sendMessageOptionsStore = new SendMessageOptionsStore(DispatcherDefault, {
2026-07-20 16:05:17 +00:00
MESSAGE_CREATE: function handleMessageCreate(arg0) {
({ message, sendMessageOptions } = arg0);
if (null != sendMessageOptions) {
const obj = {};
const merged = Object.assign(sendMessageOptions);
let OTHER = sendMessageOptions.location;
2026-07-29 08:29:29 +00:00
if (OTHER == null) {
2026-07-20 16:05:17 +00:00
OTHER = MessageSendLocation.OTHER;
}
2026-07-29 08:29:29 +00:00
obj.location = OTHER;
closure_1[message.id] = obj;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
let tmp8 = null != message.nonce && message.nonce !== message.id;
if (tmp8) {
2026-07-29 08:29:29 +00:00
tmp8 = message.nonce in closure_1;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if (tmp8) {
2026-07-20 16:05:17 +00:00
const nonce = message.nonce;
2026-07-23 10:11:24 +00:00
delete tmp2[tmp];
2026-07-20 16:05:17 +00:00
}
}
});
const result = size.fileFinishedImporting("modules/messages/SendMessageOptionsStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default sendMessageOptionsStore;