2026-09-29 21:26:22 +00:00
|
|
|
// Module ID: 13568
|
|
|
|
|
// Function ID: 13569
|
2026-09-18 20:18:48 +00:00
|
|
|
// Name: isMostRecentDeadEndInvite
|
2026-09-29 21:26:22 +00:00
|
|
|
// Dependencies: [1074, 12036, 2]
|
2026-09-18 20:18:48 +00:00
|
|
|
// Exports: isMostRecentDeadEndInvite
|
|
|
|
|
|
2026-09-29 21:26:22 +00:00
|
|
|
// Module 13568 (isMostRecentDeadEndInvite)
|
2026-09-18 20:18:48 +00:00
|
|
|
import Constants from "Constants" /* 1074 */;
|
2026-09-29 21:26:22 +00:00
|
|
|
import isInviteActiveDefault from "isInviteActive" /* 12036 */;
|
2026-09-18 20:18:48 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
|
|
|
|
|
|
|
|
|
const ActivityActionTypes = Constants.ActivityActionTypes;
|
|
|
|
|
const result = size.fileFinishedImporting("modules/activities/utils/isMostRecentDeadEndInvite.tsx");
|
|
|
|
|
|
|
|
|
|
export const isMostRecentDeadEndInvite = function isMostRecentDeadEndInvite(id, messages, id2, findActivityResult) {
|
|
|
|
|
closure_0 = id2;
|
|
|
|
|
closure_1 = findActivityResult;
|
|
|
|
|
return !messages.hasAnyAfter(id, (activity) => {
|
|
|
|
|
let tmp = null != activity.activity;
|
|
|
|
|
if (tmp) {
|
|
|
|
|
const application = activity.application;
|
|
|
|
|
let id;
|
|
|
|
|
if (application != null) {
|
|
|
|
|
id = application.id;
|
|
|
|
|
}
|
|
|
|
|
tmp = id === closure_0;
|
|
|
|
|
}
|
|
|
|
|
if (tmp) {
|
|
|
|
|
tmp = activity.activity.type === ActivityActionTypes.JOIN;
|
|
|
|
|
}
|
|
|
|
|
if (tmp) {
|
|
|
|
|
tmp = !isInviteActiveDefault(closure_1, activity, closure_0);
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}, 25);
|
|
|
|
|
};
|