Progress on DMs responsiveness

Progress on DMs responsiveness
This commit is contained in:
mgabdev
2020-12-03 22:27:09 -05:00
parent 137a36b810
commit f6a7422704
29 changed files with 682 additions and 186 deletions

View File

@@ -1,13 +1,17 @@
# frozen_string_literal: true
class REST::ChatMessageSerializer < ActiveModel::Serializer
attributes :id, :text, :language, :from_account_id,
attributes :id, :text_html, :text, :language, :from_account_id,
:chat_conversation_id, :created_at
def id
object.id.to_s
end
def text_html
Formatter.instance.chatMessageText(object).strip
end
def from_account_id
object.from_account_id.to_s
end