Restructure omni services and add Chatwoot research snapshot
This commit is contained in:
12
research/chatwoot/app/drops/message_drop.rb
Normal file
12
research/chatwoot/app/drops/message_drop.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
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
|
||||
Reference in New Issue
Block a user