2026-10-09 10:00:15 +00:00
|
|
|
// Module ID: 17191
|
|
|
|
|
// Function ID: 17192
|
2026-10-05 08:00:40 +00:00
|
|
|
// Name: chat/ConjureRepliedMessage
|
2026-09-15 14:23:42 +00:00
|
|
|
// Dependencies: [2]
|
|
|
|
|
// Exports: repliedMessage
|
|
|
|
|
|
2026-10-09 10:00:15 +00:00
|
|
|
// Module 17191 (chat/ConjureRepliedMessage)
|
2026-09-15 14:23:42 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
|
|
|
|
|
2026-10-05 08:00:40 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/conjure/chat/ConjureRepliedMessage.tsx");
|
2026-09-15 14:23:42 +00:00
|
|
|
|
2026-09-29 09:27:02 +00:00
|
|
|
export const repliedMessage = function repliedMessage(memo, in_reply_to) {
|
2026-10-03 08:58:59 +00:00
|
|
|
let closure_0 = in_reply_to;
|
2026-09-15 14:23:42 +00:00
|
|
|
if (null != in_reply_to) {
|
2026-10-03 08:58:59 +00:00
|
|
|
const found = memo.find((id) => id.id === in_reply_to && "user" === id.role);
|
2026-09-15 14:23:42 +00:00
|
|
|
if (null != found) {
|
2026-10-03 08:58:59 +00:00
|
|
|
let obj3;
|
|
|
|
|
const obj = { id: null, content: null, createdAt: found.created_at };
|
2026-09-15 14:23:42 +00:00
|
|
|
({ id: obj.id, content: obj.content } = found);
|
|
|
|
|
if (null != found.user_id) {
|
2026-10-03 08:58:59 +00:00
|
|
|
obj3 = { userId: found.user_id };
|
2026-09-15 14:23:42 +00:00
|
|
|
const obj2 = { userId: found.user_id };
|
|
|
|
|
} else {
|
|
|
|
|
obj3 = {};
|
|
|
|
|
}
|
|
|
|
|
const merged = Object.assign(obj3);
|
|
|
|
|
return obj;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|