2026-09-28 16:18:32 +00:00
|
|
|
// Module ID: 6889
|
|
|
|
|
// Function ID: 6890
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: SkippedClientHeartbeatUtil
|
2026-09-28 16:18:32 +00:00
|
|
|
// Dependencies: [1372, 6890, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
// Exports: shouldLogClientHeartbeatSkipped
|
|
|
|
|
|
2026-09-28 16:18:32 +00:00
|
|
|
// Module 6889 (SkippedClientHeartbeatUtil)
|
|
|
|
|
import sampleWithUserId from "sampleWithUserId" /* 6890 */;
|
2026-09-26 17:57:22 +00:00
|
|
|
import UserStore from "UserStore" /* 1372 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
};
|