chore: Add account_id scope for conversation.messages (#7707)

This commit is contained in:
Pranav Raj S
2023-08-10 23:02:53 -07:00
committed by GitHub
parent 961d810645
commit bafff90f18

View File

@@ -17,7 +17,7 @@ json.meta do
end
json.id conversation.display_id
if conversation.messages.first.blank?
if conversation.messages.where(account_id: conversation.account_id).first.blank?
json.messages []
else
json.messages [