mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 03:27:52 +00:00
13 lines
266 B
Ruby
13 lines
266 B
Ruby
class MessageDrop < BaseDrop
|
|
include MessageFormatHelper
|
|
|
|
def sender_display_name
|
|
@obj.sender.try(:available_name)
|
|
end
|
|
|
|
def text_content
|
|
content = @obj.try(:content) || ''
|
|
render_message_content(transform_user_mention_content(content))
|
|
end
|
|
end
|