Chatwoot/app/drops/message_drop.rb
Pranav Raj S 2f63ebb8a6
fix: Add fixes for sentry errors (#3522)
- Add fixes for sentry errors
2021-12-09 11:50:28 +05:30

12 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