mirror of
https://github.com/logos-messaging/examples.waku.org.git
synced 2026-05-20 16:19:43 +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