Update ThreadChannel.js
This commit is contained in:
@@ -107,7 +107,9 @@ class ThreadChannel extends Channel {
|
|||||||
* created</info>
|
* created</info>
|
||||||
* @type {?number}
|
* @type {?number}
|
||||||
*/
|
*/
|
||||||
this.archiveTimestamp = new Date(data.thread_metadata.archive_timestamp).getTime();
|
this.archiveTimestamp = data.thread_metadata?.archive_timestamp
|
||||||
|
? Date.parse(data.thread_metadata.archive_timestamp)
|
||||||
|
: null;
|
||||||
|
|
||||||
if ('create_timestamp' in data.thread_metadata) {
|
if ('create_timestamp' in data.thread_metadata) {
|
||||||
// Note: this is needed because we can't assign directly to getters
|
// Note: this is needed because we can't assign directly to getters
|
||||||
|
|||||||
Reference in New Issue
Block a user