fix: Replace BigInt literal with BigInt function for ES compatibility
This commit is contained in:
parent
ad19603f7c
commit
e8978bb086
1 changed files with 1 additions and 1 deletions
|
|
@ -313,7 +313,7 @@ export class MetaAIClient {
|
||||||
const externalConversationId = crypto.randomUUID();
|
const externalConversationId = crypto.randomUUID();
|
||||||
const timestamp = Date.now();
|
const timestamp = Date.now();
|
||||||
const randomPart = Math.floor(Math.random() * 4194304); // 22 bits
|
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
|
// Store for polling
|
||||||
this.session.externalConversationId = externalConversationId;
|
this.session.externalConversationId = externalConversationId;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue