From bd039ee238338c720f12ee5fc83ca1623ca6a041 Mon Sep 17 00:00:00 2001 From: NicolasCantu Date: Wed, 15 Jan 2025 13:24:55 +0100 Subject: [PATCH] Keep new message process in messagesProcess --- src/pages/chat/chat.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pages/chat/chat.ts b/src/pages/chat/chat.ts index a41a669..9232a9f 100755 --- a/src/pages/chat/chat.ts +++ b/src/pages/chat/chat.ts @@ -414,8 +414,11 @@ class ChatElement extends HTMLElement { if (messagesProcess === null) { console.log('Create a new child process'); // We need to create a new process + let newProcess; try { const res = await service.createDmProcess(member, this.processId); + // We catch the new process here + messagesProcess = res.updated_process.current_process; await service.handleApiReturn(res); } catch (e) { console.error(e);