mirror of
https://github.com/status-im/js-waku-examples.git
synced 2025-02-17 09:27:28 +00:00
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 {
|
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 {
|
get nick(): string {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user