diff options
Diffstat (limited to 'app/models/account_conversation.rb')
-rw-r--r-- | app/models/account_conversation.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/account_conversation.rb b/app/models/account_conversation.rb index cc6b39279..0c03747e2 100644 --- a/app/models/account_conversation.rb +++ b/app/models/account_conversation.rb @@ -30,7 +30,8 @@ class AccountConversation < ApplicationRecord if participant_account_ids.empty? [account] else - Account.where(id: participant_account_ids) + participants = Account.where(id: participant_account_ids) + participants.empty? ? [account] : participants end end |