fix(docs): Correctly document Chat timestamp property

close #287
This commit is contained in:
Pedro Lopez
2020-08-17 22:36:23 -04:00
parent 2a58cfe8e2
commit 34aa136bf9
2 changed files with 2 additions and 2 deletions

2
index.d.ts vendored
View File

@@ -659,7 +659,7 @@ declare namespace WAWebJS {
isReadOnly: boolean, isReadOnly: boolean,
/** Title of the chat */ /** Title of the chat */
name: string, name: string,
/** Unix timestamp for when the chat was created */ /** Unix timestamp for when the last activity occurred */
timestamp: number, timestamp: number,
/** Amount of messages unread */ /** Amount of messages unread */
unreadCount: number, unreadCount: number,

View File

@@ -46,7 +46,7 @@ class Chat extends Base {
this.unreadCount = data.unreadCount; this.unreadCount = data.unreadCount;
/** /**
* Unix timestamp for when the chat was created * Unix timestamp for when the last activity occurred
* @type {number} * @type {number}
*/ */
this.timestamp = data.t; this.timestamp = data.t;