fix(web-chat): protons does not seem to always return a bigint

This commit is contained in:
fryorcraken.eth 2022-11-18 15:47:42 +11:00
parent 165835d868
commit cefe44b062
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 1 additions and 1 deletions

View File

@ -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 {