From cefe44b0625f9c90e305bd93b3f4279d093df4f0 Mon Sep 17 00:00:00 2001 From: "fryorcraken.eth" Date: Fri, 18 Nov 2022 15:47:42 +1100 Subject: [PATCH] fix(web-chat): protons does not seem to always return a bigint --- web-chat/src/chat_message.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-chat/src/chat_message.ts b/web-chat/src/chat_message.ts index 52dbe08..1039e2e 100644 --- a/web-chat/src/chat_message.ts +++ b/web-chat/src/chat_message.ts @@ -47,7 +47,7 @@ export class ChatMessage { } get timestamp(): Date { - return new Date(Number(this.proto.timestamp * BigInt(1000))); + return new Date(Number(BigInt(this.proto.timestamp) * BigInt(1000))); } get nick(): string {