Skip to content

Commit

Permalink
fix: meeting recording duration issue
Browse files Browse the repository at this point in the history
  • Loading branch information
embbnux committed Jun 25, 2024
1 parent 962ea97 commit 6b51794
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/components/MeetingHistoryPanel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ function MeetingList({
onClick,
onLog,
logTitle,
type,
}) {
const list = meetings.map((meeting) => (
<MeetingItem
Expand All @@ -80,6 +81,7 @@ function MeetingList({
showLog={!!onLog}
logTitle={logTitle}
duration={meeting.duration}
type={type}
/>
));
if (meetings.length === 0) {
Expand Down Expand Up @@ -147,6 +149,7 @@ export default function MeetingHistoryPanel({
onClick={onClick}
onLog={onLog}
logTitle={logTitle}
type={type}
/>
);
}
Expand Down
7 changes: 6 additions & 1 deletion src/components/MeetingItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export default function MeetingItem({
showLog,
logTitle,
duration,
type,
}) {
const recording = recordings && recordings[0]
const recodingIcon = recording && recording.metadata ? (
Expand All @@ -112,6 +113,10 @@ export default function MeetingItem({
color="action.primary"
/>
) : null;
let durationValue = duration;
if (type === 'recordings' && recording && recording.metadata) {
durationValue = recording.metadata.duration;
}

const hostContent = hostInfo ? (
<span>
Expand Down Expand Up @@ -145,7 +150,7 @@ export default function MeetingItem({
<DetailArea>
{recodingIcon}
<span>
{formatDuration(duration)}
{formatDuration(durationValue)}
</span>
{
hostInfo ?
Expand Down

0 comments on commit 6b51794

Please sign in to comment.