feat: Add message content to mention email template (#2838)

This commit is contained in:
Tejaswini Chile
2021-08-18 15:28:45 +05:30
committed by GitHub
parent 20b96c7c60
commit eb80324eaa
5 changed files with 37 additions and 8 deletions

12
app/drops/message_drop.rb Normal file
View File

@@ -0,0 +1,12 @@
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