decord/source/modules/chat/native/ChatChangesetUpdateTracker.tsx

34 lines
897 B
TypeScript
Raw Normal View History

2026-07-21 06:55:02 +00:00
// Module ID: 9434
// Function ID: 73430
2026-07-20 16:05:17 +00:00
// Name: weakMap
2026-07-21 06:55:02 +00:00
// Dependencies: [284214097]
2026-07-20 16:05:17 +00:00
// Exports: getAndIncrementChangesetIdForChat, getChangesetIdForChat
2026-07-21 06:55:02 +00:00
// Module 9434 (weakMap)
2026-07-20 16:05:17 +00:00
const weakMap = new WeakMap();
const _module = require(dependencyMap[0]);
const result = _module.fileFinishedImporting("modules/chat/native/ChatChangesetUpdateTracker.tsx");
export const getAndIncrementChangesetIdForChat = function getAndIncrementChangesetIdForChat(arg0) {
const value = weakMap.get(arg0);
let num = 0;
if (null != value) {
num = value;
}
const sum = num + 1;
const result = weakMap.set(arg0, sum);
return sum;
};
export const getChangesetIdForChat = function getChangesetIdForChat(current) {
let num = 0;
if (null != current) {
const value = weakMap.get(current);
let num2 = 0;
if (null != value) {
num2 = value;
}
num = num2;
}
return num;
};