Skip to content

Commit 6b51794

Browse files
committed
fix: meeting recording duration issue
1 parent 962ea97 commit 6b51794

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/components/MeetingHistoryPanel/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ function MeetingList({
6262
onClick,
6363
onLog,
6464
logTitle,
65+
type,
6566
}) {
6667
const list = meetings.map((meeting) => (
6768
<MeetingItem
@@ -80,6 +81,7 @@ function MeetingList({
8081
showLog={!!onLog}
8182
logTitle={logTitle}
8283
duration={meeting.duration}
84+
type={type}
8385
/>
8486
));
8587
if (meetings.length === 0) {
@@ -147,6 +149,7 @@ export default function MeetingHistoryPanel({
147149
onClick={onClick}
148150
onLog={onLog}
149151
logTitle={logTitle}
152+
type={type}
150153
/>
151154
);
152155
}

src/components/MeetingItem/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export default function MeetingItem({
9898
showLog,
9999
logTitle,
100100
duration,
101+
type,
101102
}) {
102103
const recording = recordings && recordings[0]
103104
const recodingIcon = recording && recording.metadata ? (
@@ -112,6 +113,10 @@ export default function MeetingItem({
112113
color="action.primary"
113114
/>
114115
) : null;
116+
let durationValue = duration;
117+
if (type === 'recordings' && recording && recording.metadata) {
118+
durationValue = recording.metadata.duration;
119+
}
115120

116121
const hostContent = hostInfo ? (
117122
<span>
@@ -145,7 +150,7 @@ export default function MeetingItem({
145150
<DetailArea>
146151
{recodingIcon}
147152
<span>
148-
{formatDuration(duration)}
153+
{formatDuration(durationValue)}
149154
</span>
150155
{
151156
hostInfo ?

0 commit comments

Comments
 (0)