Fix bug in CC handlers
This commit is contained in:
parent
0c1f191db5
commit
6a0978e4ad
@ -45,7 +45,7 @@ export default function handleCaptionHistory({ payload }) {
|
||||
ownerId,
|
||||
captions,
|
||||
index,
|
||||
next: (index === chunks.length - 1) ? index + 1 : undefined,
|
||||
next: (index < chunks.length - 1) ? index + 1 : undefined,
|
||||
};
|
||||
|
||||
captionsAdded.push(addCaption(meetingId, locale, captionHistoryObject));
|
||||
|
@ -14,6 +14,9 @@ export default function addCaption(meetingId, locale, captionHistory, id = false
|
||||
|
||||
if (id) {
|
||||
selector._id = id;
|
||||
} else {
|
||||
selector['captionHistory.next'] = captionHistory.next;
|
||||
selector['captionHistory.index'] = captionHistory.index;
|
||||
}
|
||||
|
||||
let modifier = {
|
||||
|
Loading…
Reference in New Issue
Block a user