feat: Add the support for custom attributes in message variables (#8511)

This commit is contained in:
Muhsin Keloth
2023-12-09 03:43:35 +05:30
committed by GitHub
parent bf49a17efa
commit b1a68759cf
4 changed files with 36 additions and 3 deletions

View File

@@ -19,6 +19,11 @@ class ConversationDrop < BaseDrop
end
end
def custom_attribute
custom_attributes = @obj.try(:custom_attributes) || {}
custom_attributes.transform_keys(&:to_s)
end
private
def message_sender_name(sender)