Fixed issue with pagination of ChatConversations

• Fixed:
- issue with pagination of ChatConversations
This commit is contained in:
mgabdev
2020-12-31 20:51:02 -05:00
parent 4297e1f81a
commit 4d2a4cc44d
5 changed files with 23 additions and 13 deletions

View File

@@ -15,7 +15,7 @@ class Api::V1::ChatConversations::RequestedConversationsController < Api::BaseCo
count = ChatConversationAccount.where(
account: current_account,
is_hidden: false,
is_approved: false,
is_approved: false
).where.not(last_chat_message_id: nil).count
render json: count
end