renamed StatusText to StatusBody for clarity, fixed chats

This commit is contained in:
Henry Jameson 2021-06-07 19:50:26 +03:00
parent 50aa379038
commit 8e9f5d7580
17 changed files with 316 additions and 225 deletions

View file

@ -448,6 +448,8 @@ export const parseChatMessage = (message) => {
output.id = message.id
output.created_at = new Date(message.created_at)
output.chat_id = message.chat_id
output.emojis = message.emojis
output.content_raw = message.content
if (message.content) {
output.content = addEmojis(message.content, message.emojis)
} else {

View file

@ -1,6 +1,6 @@
/**
* This is a not-so-tiny purpose-built HTML parser/processor. It was made for use
* with StatusText component for purpose of replacing tags with vue components
* with StatusBody component for purpose of replacing tags with vue components
*
* known issue: doesn't handle CDATA so nested CDATA might not work well
*