From cbfad9ad87ed0035a399238a850d190b2d2bf4f3 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 6 Mar 2021 17:58:20 +0100 Subject: [PATCH] Fix bad refresh --- assets/js/components/conversations/chatWindows.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/js/components/conversations/chatWindows.js b/assets/js/components/conversations/chatWindows.js index 062e1e10..ae43dcc7 100644 --- a/assets/js/components/conversations/chatWindows.js +++ b/assets/js/components/conversations/chatWindows.js @@ -270,7 +270,7 @@ const ConvChatWindow = { * @param {Object} conversationWindow Informations about the conversation window * @return {Boolean} True for a success */ - load: async function(conversationID, conversationWindow) { + load: async function(conversationID, conversationWindow, forceRefresh) { try { @@ -284,7 +284,7 @@ const ConvChatWindow = { rej(info) else res(info) - }); + }, forceRefresh); }) const users = await getUsers(conv.members.map(m => m.user_id)); @@ -730,7 +730,7 @@ const ConvChatWindow = { */ reload: function(conversation) { ConvChatWindow.unload(conversation.infos.id, true); - ConvChatWindow.load(conversation.infos.id, conversation.box); + ConvChatWindow.load(conversation.infos.id, conversation.box, true); }, /**