33 lines
884 B
TypeScript
33 lines
884 B
TypeScript
// Module ID: 9991
|
|
// Function ID: 9992
|
|
// Name: ChatChangesetUpdateTracker
|
|
// Dependencies: [2]
|
|
// Exports: getAndIncrementChangesetIdForChat, getChangesetIdForChat
|
|
|
|
// Module 9991 (ChatChangesetUpdateTracker)
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const weakMap = new WeakMap();
|
|
let result = size.fileFinishedImporting("modules/chat/native/ChatChangesetUpdateTracker.tsx");
|
|
|
|
export const getAndIncrementChangesetIdForChat = function getAndIncrementChangesetIdForChat(arg0) {
|
|
let num = weakMap.get(arg0);
|
|
const obj = weakMap;
|
|
if (num == null) {
|
|
num = 0;
|
|
}
|
|
const sum = num + 1;
|
|
const result = obj.set(arg0, sum);
|
|
return sum;
|
|
};
|
|
export const getChangesetIdForChat = function getChangesetIdForChat(current) {
|
|
let num = 0;
|
|
if (null != current) {
|
|
let num2 = weakMap.get(current);
|
|
if (num2 == null) {
|
|
num2 = 0;
|
|
}
|
|
num = num2;
|
|
}
|
|
return num;
|
|
};
|