12 lines
233 B
Ruby
12 lines
233 B
Ruby
class MessageDrop < BaseDrop
|
|
include MessageFormatHelper
|
|
|
|
def sender_display_name
|
|
@obj.sender.try(:display_name)
|
|
end
|
|
|
|
def text_content
|
|
content = @obj.try(:content)
|
|
transform_user_mention_content content
|
|
end
|
|
end
|