decord/source/modules/messages/SendMessageOptionsStore.tsx

48 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-08-27 16:17:25 +00:00
// Module ID: 11167
// Function ID: 11168
2026-07-29 08:29:29 +00:00
// Name: getOptions
2026-08-27 16:17:25 +00:00
// Dependencies: [4438, 589, 709, 2]
2026-07-23 10:11:24 +00:00
2026-08-27 16:17:25 +00:00
// Module 11167 (getOptions)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import initializeDefault from "initialize" /* 589 */;
import dispatcherDefault from "dispatcher" /* 709 */;
2026-08-27 16:17:25 +00:00
import MESSAGE_GROUP_SPACING from "MESSAGE_GROUP_SPACING" /* 4438 */;
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
const MessageSendLocation = MESSAGE_GROUP_SPACING.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 table[arg0];
};
SendMessageOptionsStore.displayName = "SendMessageOptionsStore";
2026-08-24 06:08:38 +00:00
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;
const tmp3 = closure_1;
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
}
}
});
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("modules/messages/SendMessageOptionsStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default sendMessageOptionsStore;