fix(Message): check for edited_timestamp in data when patching message (#3535)

* check for data.edited_timestamp

* actually i should do it like this for consistency

* indentation
This commit is contained in:
rei2hu
2019-10-18 11:55:35 +02:00
committed by SpaceEEC
parent a61cfc3004
commit 9e0705cbc3
+1 -1
View File
@@ -219,7 +219,7 @@ class Message extends Base {
const clone = this._clone();
this._edits.unshift(clone);
this.editedTimestamp = new Date(data.edited_timestamp).getTime();
if ('edited_timestamp' in data) 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;