Message.editedTimestamp should be a number (#1402)

This commit is contained in:
SpaceEEC
2017-04-22 16:54:48 +02:00
committed by Crawl
parent 6c4f63ed72
commit 5b3e971c5c

View File

@@ -159,7 +159,7 @@ class Message {
const clone = Util.cloneObject(this);
this._edits.unshift(clone);
this.editedTimestamp = data.edited_timestamp;
this.editedTimestamp = new Date(data.edited_timestamp).getTime();
if ('content' in data) this.content = data.content;
if ('pinned' in data) this.pinned = data.pinned;
if ('tts' in data) this.tts = data.tts;