decord/source/modules/activities/utils/isMostRecentDeadEndInvite.tsx

36 lines
1 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 12828
// Function ID: 12829
2026-07-20 16:05:17 +00:00
// Name: isMostRecentDeadEndInvite
2026-08-25 06:04:03 +00:00
// Dependencies: [676, 11313, 2]
2026-07-20 16:05:17 +00:00
// Exports: isMostRecentDeadEndInvite
2026-08-25 06:04:03 +00:00
// Module 12828 (isMostRecentDeadEndInvite)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import ME from "ME" /* 676 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const ActivityActionTypes = ME.ActivityActionTypes;
const result = set.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-07-23 10:11:24 +00:00
tmp = id === id2;
2026-07-20 16:05:17 +00:00
}
if (tmp) {
2026-08-24 06:08:38 +00:00
tmp = activity.activity.type === closure_1_2.JOIN;
2026-07-20 16:05:17 +00:00
}
if (tmp) {
2026-07-23 10:11:24 +00:00
tmp = !id2(table[1])(table, activity, id2);
2026-07-20 16:05:17 +00:00
}
return tmp;
}, 25);
};