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:
parent
b01784d213
commit
fa044b14d0
1 changed files with 1 additions and 1 deletions
|
|
@ -277,7 +277,6 @@ module.exports = ({ cooler, tribeCrypto, chatCrypto, tribesModel }) => {
|
||||||
invites,
|
invites,
|
||||||
author: c.author || node.author,
|
author: c.author || node.author,
|
||||||
createdAt: c.createdAt || new Date(node.ts).toISOString(),
|
createdAt: c.createdAt || new Date(node.ts).toISOString(),
|
||||||
replyTo: c.replyTo || null,
|
|
||||||
updatedAt: c.updatedAt || null,
|
updatedAt: c.updatedAt || null,
|
||||||
encrypted: !!c.encrypted,
|
encrypted: !!c.encrypted,
|
||||||
tribeId: c.tribeId || null,
|
tribeId: c.tribeId || null,
|
||||||
|
|
@ -305,6 +304,7 @@ module.exports = ({ cooler, tribeCrypto, chatCrypto, tribesModel }) => {
|
||||||
chatId: c.chatId || "",
|
chatId: c.chatId || "",
|
||||||
text,
|
text,
|
||||||
image: c.image || null,
|
image: c.image || null,
|
||||||
|
replyTo: c.replyTo || null,
|
||||||
author: c.author || node.author,
|
author: c.author || node.author,
|
||||||
createdAt: c.createdAt || new Date(node.ts).toISOString()
|
createdAt: c.createdAt || new Date(node.ts).toISOString()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue