chore: Minor fix

This commit is contained in:
iamsivin
2025-04-28 16:44:37 +05:30
parent 38741f9a15
commit c710c55cf1
2 changed files with 2 additions and 3 deletions
@@ -148,7 +148,7 @@ class Messages::ForwardedMessageBuilder
end
def basic_attributes
{ content_attributes: { forwarded_message_id: @message_id, is_forwarded_message: true } }
{ content_attributes: { forwarded_message_id: @message_id } }
end
def formatted_info
+1 -2
View File
@@ -101,10 +101,9 @@ class Message < ApplicationRecord
# [:deleted] : Used to denote whether the message was deleted by the agent
# [:external_created_at] : Can specify if the message was created at a different timestamp externally
# [:external_error : Can specify if the message creation failed due to an error at external API
# [:is_forwarded_message] : Used to indicate that a message is a forwarded message
store :content_attributes, accessors: [:submitted_email, :items, :submitted_values, :email, :in_reply_to, :deleted,
:external_created_at, :story_sender, :story_id, :external_error,
:translations, :in_reply_to_external_id, :is_unsupported, :is_forwarded_message], coder: JSON
:translations, :in_reply_to_external_id, :is_unsupported], coder: JSON
store :external_source_ids, accessors: [:slack], coder: JSON, prefix: :external_source_id