2021-08-18 09:58:45 +00:00
|
|
|
class MessageDrop < BaseDrop
|
|
|
|
include MessageFormatHelper
|
|
|
|
|
|
|
|
def sender_display_name
|
2021-08-26 09:46:47 +00:00
|
|
|
@obj.sender.try(:available_name)
|
2021-08-18 09:58:45 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def text_content
|
2021-12-09 06:20:28 +00:00
|
|
|
content = @obj.try(:content) || ''
|
|
|
|
render_message_content(transform_user_mention_content(content))
|
2021-08-18 09:58:45 +00:00
|
|
|
end
|
|
|
|
end
|