2026-09-29 21:26:22 +00:00
|
|
|
// Module ID: 8327
|
|
|
|
|
// Function ID: 8328
|
2026-09-18 20:18:48 +00:00
|
|
|
// Name: isCrosspost
|
2026-09-29 21:26:22 +00:00
|
|
|
// Dependencies: [1074, 1385, 2]
|
2026-09-18 20:18:48 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-29 21:26:22 +00:00
|
|
|
// Module 8327 (isCrosspost)
|
|
|
|
|
import FlagUtils from "FlagUtils" /* 1385 */;
|
2026-09-18 20:18:48 +00:00
|
|
|
import Constants from "Constants" /* 1074 */;
|
|
|
|
|
import size from "module_2" /* 2 */;
|
|
|
|
|
|
|
|
|
|
({ MessageFlags: c2, MessageReferenceTypes: c3, MessageTypes: closure_4 } = Constants);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/messages/isCrosspost.tsx");
|
|
|
|
|
|
|
|
|
|
export default function isCrosspost(type) {
|
|
|
|
|
let hasFlagResult = type.type === constants3.DEFAULT;
|
|
|
|
|
if (hasFlagResult) {
|
|
|
|
|
hasFlagResult = FlagUtils.hasFlag(type.flags, constants.IS_CROSSPOST);
|
|
|
|
|
}
|
|
|
|
|
if (hasFlagResult) {
|
|
|
|
|
hasFlagResult = null != type.messageReference;
|
|
|
|
|
}
|
|
|
|
|
if (hasFlagResult) {
|
|
|
|
|
hasFlagResult = type.messageReference.type !== constants2.FORWARD;
|
|
|
|
|
}
|
|
|
|
|
return hasFlagResult;
|
|
|
|
|
};
|