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

@@ -41,6 +41,8 @@ const setLastChatMessage = (state, chatMessage) => {
const importChatConversation = (state, chatConversation) => state.set(chatConversation.chat_conversation_id, normalizeChatConversation(chatConversation))
const importChatConversations = (state, chatConversations) => {
if (!Array.isArray(chatConversations)) return state
return state.withMutations((mutable) => chatConversations.forEach((chatConversation) => importChatConversation(mutable, chatConversation)))
}