From 3d503e156067cf0860da512c8cdd385b6446657c Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 6 Mar 2021 14:29:15 +0100 Subject: [PATCH] Can get older messages --- assets/js/components/conversations/chatWindows.js | 2 +- assets/js/components/conversations/service.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/components/conversations/chatWindows.js b/assets/js/components/conversations/chatWindows.js index 256fbbad..f5121f6d 100644 --- a/assets/js/components/conversations/chatWindows.js +++ b/assets/js/components/conversations/chatWindows.js @@ -1203,7 +1203,7 @@ const ConvChatWindow = { } //Save the ID of the oldest message - ComunicWeb.components.conversations.service.setOldestMessageID(conversationID, result[0].ID); + ConvService.setOldestMessageID(conversationID, result[0].id); //Display the list of messages ComunicWeb.components.conversations.chatWindows.addOldMessages(conversationID, result); diff --git a/assets/js/components/conversations/service.js b/assets/js/components/conversations/service.js index 1b978bda..5ce912c2 100644 --- a/assets/js/components/conversations/service.js +++ b/assets/js/components/conversations/service.js @@ -46,7 +46,7 @@ const ConvService = { //Register conversation locally this.__serviceCache['conversation-' + conversationID] = { conversationID: conversationID, - first_message_id: list.length == 0 ? 0 : list[0].ID, + first_message_id: list.length == 0 ? 0 : list[0].id, }; // Register conversation remotly