File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ function MeetingList({
62
62
onClick,
63
63
onLog,
64
64
logTitle,
65
+ type,
65
66
} ) {
66
67
const list = meetings . map ( ( meeting ) => (
67
68
< MeetingItem
@@ -80,6 +81,7 @@ function MeetingList({
80
81
showLog = { ! ! onLog }
81
82
logTitle = { logTitle }
82
83
duration = { meeting . duration }
84
+ type = { type }
83
85
/>
84
86
) ) ;
85
87
if ( meetings . length === 0 ) {
@@ -147,6 +149,7 @@ export default function MeetingHistoryPanel({
147
149
onClick = { onClick }
148
150
onLog = { onLog }
149
151
logTitle = { logTitle }
152
+ type = { type }
150
153
/>
151
154
) ;
152
155
}
Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ export default function MeetingItem({
98
98
showLog,
99
99
logTitle,
100
100
duration,
101
+ type,
101
102
} ) {
102
103
const recording = recordings && recordings [ 0 ]
103
104
const recodingIcon = recording && recording . metadata ? (
@@ -112,6 +113,10 @@ export default function MeetingItem({
112
113
color = "action.primary"
113
114
/>
114
115
) : null ;
116
+ let durationValue = duration ;
117
+ if ( type === 'recordings' && recording && recording . metadata ) {
118
+ durationValue = recording . metadata . duration ;
119
+ }
115
120
116
121
const hostContent = hostInfo ? (
117
122
< span >
@@ -145,7 +150,7 @@ export default function MeetingItem({
145
150
< DetailArea >
146
151
{ recodingIcon }
147
152
< span >
148
- { formatDuration ( duration ) }
153
+ { formatDuration ( durationValue ) }
149
154
</ span >
150
155
{
151
156
hostInfo ?
You can’t perform that action at this time.
0 commit comments