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

33 lines
851 B
TypeScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 9442
// Function ID: 73495
2026-07-20 16:05:17 +00:00
// Name: weakMap
2026-07-23 10:11:24 +00:00
// Dependencies: [2]
2026-07-20 16:05:17 +00:00
// Exports: getAndIncrementChangesetIdForChat, getChangesetIdForChat
2026-07-23 10:11:24 +00:00
// Module 9442 (weakMap)
2026-07-20 16:05:17 +00:00
const weakMap = new WeakMap();
2026-07-23 10:11:24 +00:00
let result = require("set").fileFinishedImporting("modules/chat/native/ChatChangesetUpdateTracker.tsx");
2026-07-20 16:05:17 +00:00
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;
};