fix(tile-view): when iAmRecorder=true.

This commit is contained in:
Hristo Terezov 2021-07-07 17:39:40 -05:00
parent 33f1199fc8
commit e1fef8d848
1 changed files with 2 additions and 1 deletions

View File

@ -114,7 +114,8 @@ function _mapStateToProps(state, ownProps) {
if (rowIndex === rows - 1) { // center the last row
const { width: thumbnailWidth } = thumbnailSize;
const partialLastRowParticipantsNumber = (remoteParticipantsLength + 1) % columns;
const { iAmRecorder } = state['features/base/config'];
const partialLastRowParticipantsNumber = (remoteParticipantsLength + (iAmRecorder ? 0 : 1)) % columns;
if (partialLastRowParticipantsNumber > 0) {
horizontalOffset = Math.floor((columns - partialLastRowParticipantsNumber) * (thumbnailWidth + 4) / 2);