2026-09-16 07:03:15 +00:00
|
|
|
// Module ID: 13382
|
|
|
|
|
// Function ID: 13383
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: isMostRecentDeadEndInvite
|
2026-09-16 07:03:15 +00:00
|
|
|
// Dependencies: [1074, 11896, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: isMostRecentDeadEndInvite
|
|
|
|
|
|
2026-09-16 07:03:15 +00:00
|
|
|
// Module 13382 (isMostRecentDeadEndInvite)
|
2026-09-10 05:38:07 +00:00
|
|
|
import Constants from "Constants" /* 1074 */;
|
2026-09-16 07:03:15 +00:00
|
|
|
import isInviteActiveDefault from "isInviteActive" /* 11896 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const ActivityActionTypes = Constants.ActivityActionTypes;
|
|
|
|
|
const result = size.fileFinishedImporting("modules/activities/utils/isMostRecentDeadEndInvite.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export const isMostRecentDeadEndInvite = function isMostRecentDeadEndInvite(id, messages, id2, findActivityResult) {
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_0 = id2;
|
|
|
|
|
closure_1 = findActivityResult;
|
2026-07-29 08:29:29 +00:00
|
|
|
return !messages.hasAnyAfter(id, (activity) => {
|
2026-07-20 16:05:17 +00:00
|
|
|
let tmp = null != activity.activity;
|
|
|
|
|
if (tmp) {
|
|
|
|
|
const application = activity.application;
|
|
|
|
|
let id;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (application != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
id = application.id;
|
|
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
tmp = id === closure_0;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (tmp) {
|
2026-09-10 05:38:07 +00:00
|
|
|
tmp = activity.activity.type === ActivityActionTypes.JOIN;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (tmp) {
|
2026-09-10 05:38:07 +00:00
|
|
|
tmp = !isInviteActiveDefault(closure_1, activity, closure_0);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}, 25);
|
|
|
|
|
};
|