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