decord/alpha/source/modules/analytics_sessions/SkippedClientHeartbeatUtil.tsx
github-actions 72019a2d0c chore: update source for alpha 348.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-25 08:38:05 +00:00

26 lines
836 B
TypeScript

// Module ID: 6884
// Function ID: 6885
// Name: SkippedClientHeartbeatUtil
// Dependencies: [1372, 6885, 2]
// Exports: shouldLogClientHeartbeatSkipped
// Module 6884 (SkippedClientHeartbeatUtil)
import sampleWithUserId from "sampleWithUserId" /* 6885 */;
import UserStore from "UserStore" /* 1372 */;
require = fn;
const size = fn(2);
const result = size.fileFinishedImporting("modules/analytics_sessions/SkippedClientHeartbeatUtil.tsx");
export const shouldLogClientHeartbeatSkipped = function shouldLogClientHeartbeatSkipped() {
const currentUser = UserStore.getCurrentUser();
let tmp = null != currentUser;
if (tmp) {
let isStaffResult = currentUser.isStaff();
if (!isStaffResult) {
isStaffResult = sampleWithUserId.sampleWithUserId(currentUser.id, 0.02);
}
tmp = isStaffResult;
}
return tmp;
};