35 lines
1 KiB
TypeScript
35 lines
1 KiB
TypeScript
// Module ID: 13239
|
|
// Function ID: 13240
|
|
// Name: isMostRecentDeadEndInvite
|
|
// Dependencies: [1074, 11759, 2]
|
|
// Exports: isMostRecentDeadEndInvite
|
|
|
|
// Module 13239 (isMostRecentDeadEndInvite)
|
|
import set from "set" /* 2 */;
|
|
import ME from "ME" /* 1074 */;
|
|
|
|
const ActivityActionTypes = ME.ActivityActionTypes;
|
|
const result = set.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 === id2;
|
|
}
|
|
if (tmp) {
|
|
tmp = activity.activity.type === closure_1_2.JOIN;
|
|
}
|
|
if (tmp) {
|
|
tmp = !id2(table[1])(table, activity, id2);
|
|
}
|
|
return tmp;
|
|
}, 25);
|
|
};
|