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);