Skip to content

Commit

Permalink
fix(web-chat): protons does not seem to always return a bigint
Browse files Browse the repository at this point in the history
  • Loading branch information
fryorcraken committed Nov 18, 2022
1 parent 165835d commit cefe44b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web-chat/src/chat_message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit cefe44b

Please sign in to comment.