feat: include messages

This commit is contained in:
Shivam Mishra
2023-05-18 17:40:28 +05:30
parent 1b55172eb7
commit 80a66174a7
+1 -1
View File
@@ -58,7 +58,7 @@ class Conversations::FilterService < FilterService
def conversations
@conversations = @conversations.includes(
:taggings, :inbox, { assignee: { avatar_attachment: [:blob] } }, { contact: { avatar_attachment: [:blob] } }, :team
:taggings, :inbox, { assignee: { avatar_attachment: [:blob] } }, { contact: { avatar_attachment: [:blob] } }, :team, :messages
)
@conversations.latest.page(current_page)