fix: Force account_id in message filters (#7705)

This commit is contained in:
Pranav Raj S
2023-08-10 21:58:25 -07:00
committed by GitHub
parent 1cac2e86c3
commit 1a06bfd69c
2 changed files with 6 additions and 3 deletions

View File

@@ -170,7 +170,7 @@ class Conversation < ApplicationRecord
end
def unread_incoming_messages
unread_messages.incoming.last(10)
unread_messages.where(account_id: account_id).incoming.last(10)
end
def push_event_data