From 2203b54917487cfae48b2c3d3fd92b671a1b2410 Mon Sep 17 00:00:00 2001 From: s1to Date: Wed, 19 Aug 2026 10:30:00 +0200 Subject: [PATCH] chats: la respuesta citada se guardaba pero no se pintaba buildMessage no copiaba replyTo del contenido del mensaje, asi que la vista nunca encontraba a quien se respondia y la burbuja salia sin cita. El campo estaba puesto por error en buildChat, donde no significa nada: un chat no responde a ningun mensaje. Se ve al responder a un mensaje y recargar el hilo. --- src/models/chats_model.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/chats_model.js b/src/models/chats_model.js index a74d7c1..545e1fe 100644 --- a/src/models/chats_model.js +++ b/src/models/chats_model.js @@ -277,7 +277,6 @@ module.exports = ({ cooler, tribeCrypto, chatCrypto, tribesModel }) => { invites, author: c.author || node.author, createdAt: c.createdAt || new Date(node.ts).toISOString(), - replyTo: c.replyTo || null, updatedAt: c.updatedAt || null, encrypted: !!c.encrypted, tribeId: c.tribeId || null, @@ -305,6 +304,7 @@ module.exports = ({ cooler, tribeCrypto, chatCrypto, tribesModel }) => { chatId: c.chatId || "", text, image: c.image || null, + replyTo: c.replyTo || null, author: c.author || node.author, createdAt: c.createdAt || new Date(node.ts).toISOString() }