decord/source/modules/messages/getHumanizedCallDuration.tsx

21 lines
536 B
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 7869
// Function ID: 7870
2026-07-20 16:05:17 +00:00
// Name: getHumanizedCallDuration
2026-07-23 10:11:24 +00:00
// Dependencies: [2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-05 07:35:12 +00:00
// Module 7869 (getHumanizedCallDuration)
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/messages/getHumanizedCallDuration.tsx");
2026-07-20 16:05:17 +00:00
export default function getHumanizedCallDuration(call) {
let duration = null;
if (null != call.call) {
duration = call.call.duration;
}
let humanizeResult = null;
if (null != duration) {
humanizeResult = duration.humanize();
}
return humanizeResult;
};