Chatwoot/app/drops/message_drop.rb
2021-08-26 15:16:47 +05:30

12 lines
235 B
Ruby

class MessageDrop < BaseDrop
include MessageFormatHelper
def sender_display_name
@obj.sender.try(:available_name)
end
def text_content
content = @obj.try(:content)
transform_user_mention_content content
end
end