fix: Replace BigInt literal with BigInt function for ES compatibility
Some checks are pending
CI / build (18.x) (push) Waiting to run
CI / build (20.x) (push) Waiting to run

This commit is contained in:
Khoa.vo 2026-01-07 19:40:49 +07:00
parent ad19603f7c
commit e8978bb086

View file

@ -313,7 +313,7 @@ export class MetaAIClient {
const externalConversationId = crypto.randomUUID();
const timestamp = Date.now();
const randomPart = Math.floor(Math.random() * 4194304); // 22 bits
const offlineThreadingId = ((BigInt(timestamp) << 22n) | BigInt(randomPart)).toString();
const offlineThreadingId = ((BigInt(timestamp) << BigInt(22)) | BigInt(randomPart)).toString();
// Store for polling
this.session.externalConversationId = externalConversationId;