fix(web-chat): protons does not seem to always return a bigint
This commit is contained in:
parent
165835d868
commit
cefe44b062
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue