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.
This commit is contained in:
s1to 2026-08-19 10:30:00 +02:00
parent 0bf4a8fcb9
commit 2203b54917

View file

@ -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()
}