decord/beta/source/modules/vibegrations/lib/VibegrationsRepliedMessage.tsx
github-actions 30c0bb2ec3 chore: update source for beta 347.10
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4975.js (118.4 MB)
2026-09-24 16:03:38 +00:00

36 lines
1 KiB
TypeScript

// Module ID: 17062
// Function ID: 17063
// Name: vibegrations/VibegrationsRepliedMessage
// Dependencies: [2]
// Exports: repliedMessage
// Module 17062 (vibegrations/VibegrationsRepliedMessage)
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/vibegrations/lib/VibegrationsRepliedMessage.tsx");
export const repliedMessage = function repliedMessage(stateFromStores1, in_reply_to) {
closure_0 = in_reply_to;
if (null != in_reply_to) {
const found = stateFromStores1.find((id) => {
let tmp = id.id === closure_0;
if (tmp) {
tmp = "user" === id.role;
}
return tmp;
});
if (null != found) {
const obj = { id: null, content: null };
({ id: obj.id, content: obj.content } = found);
if (null != found.user_id) {
const obj2 = { userId: found.user_id };
let obj3 = obj2;
} else {
obj3 = {};
}
const merged = Object.assign(obj3);
obj.createdAt = found.created_at;
return obj;
}
}
};