redo chat messages just a tad

This commit is contained in:
ouwou
2020-09-25 23:02:13 -04:00
parent 9b78e829b5
commit 3689f5ae9f
6 changed files with 527 additions and 718 deletions

View File

@@ -107,6 +107,8 @@ void Message::from_json_edited(const nlohmann::json &j) {
JS_O("content", Content);
JS_O("timestamp", Timestamp);
JS_ON("edited_timestamp", EditedTimestamp);
if (EditedTimestamp.size() > 0)
SetEdited();
JS_O("tts", IsTTS);
JS_O("mention_everyone", DoesMentionEveryone);
JS_O("mentions", Mentions);