decord/source/lib/InviteQueue.tsx
github-actions 20a21ad13f chore: update source for alpha 346.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
2026-09-11 19:12:58 +00:00

58 lines
2.3 KiB
TypeScript

// Module ID: 9986
// Function ID: 9987
// Name: InviteQueue
// Dependencies: [1957, 1090, 7907, 3, 7529, 4619, 2]
// Module 9986 (InviteQueue)
import LoggerDefault from "Logger" /* 3 */;
import DurationsDefault from "Durations" /* 1090 */;
import MessageActionCreatorsDefault from "MessageActionCreators" /* 7529 */;
import ChannelStore from "ChannelStore" /* 1957 */;
import Queue from "Queue" /* 7907 */;
let sum = DurationsDefault.Millis.SECOND + 10;
let c3 = sum;
const InvitePropertiesType = { GROUP_DM: 0, [0]: "GROUP_DM", USER: 1, [1]: "USER", CHANNEL: 2, [2]: "CHANNEL" };
class InviteQueue extends tmp4 {
constructor() {
tmp2 = closure_0(closure_1[3]);
tmp21 = new tmp2("InviteQueue");
tmp1 = new tmp(tmp21, closure_3, tmp2);
return tmp1;
}
}
const prototype = InviteQueue.prototype;
prototype["_sendInvite"] = function _sendInvite(channel, inviteKey, _location, inviteAnalyticsMetadata, sum) {
MessageActionCreatorsDefault.sendInvite(channel.id, inviteKey, _location, inviteAnalyticsMetadata).then(() => sum(null, true), () => sum(null, false));
};
function drain(location, sum) {
const self = this;
dependencyMap = location;
const _location = location.location;
const inviteAnalyticsMetadata = location.inviteAnalyticsMetadata;
const type = location.type;
if (self.GROUP_DM !== type) {
if (tmp.CHANNEL !== type) {
if (tmp.USER === type) {
const obj = inviteAnalyticsMetadata(4619);
inviteAnalyticsMetadata(4619).ensurePrivateChannel(location.user.id).then((result) => {
const channel = ChannelStore.getChannel(result);
if (null != channel) {
self._sendInvite(channel, _location.inviteKey, _location, inviteAnalyticsMetadata, sum);
} else {
sum(null, false);
}
}, () => sum(null, false));
const ensurePrivateChannelResult = inviteAnalyticsMetadata(4619).ensurePrivateChannel(location.user.id);
}
}
}
self._sendInvite(location.channel, location.inviteKey, _location, inviteAnalyticsMetadata, sum);
}
prototype["drain"] = drain;
const drain1 = new drain(new LoggerDefault("InviteQueue"), sum, tmp, prototype, new.target, InviteQueue, drain, dependencyMap, new.target);
const size = fn(2);
const result = size.fileFinishedImporting("lib/InviteQueue.tsx");
export default drain1;
export { InvitePropertiesType };