fix(speaker-stats): dispatch action only on change
This commit is contained in:
parent
4aea40d34f
commit
b033d0268a
|
@ -73,8 +73,11 @@ MiddlewareRegistry.register(({ dispatch, getState }: IStore) => (next: Function)
|
||||||
case PARTICIPANT_LEFT:
|
case PARTICIPANT_LEFT:
|
||||||
case PARTICIPANT_KICKED:
|
case PARTICIPANT_KICKED:
|
||||||
case PARTICIPANT_UPDATED: {
|
case PARTICIPANT_UPDATED: {
|
||||||
dispatch(initReorderStats());
|
const { pendingReorder } = getState()['features/speaker-stats'];
|
||||||
|
|
||||||
|
if (!pendingReorder) {
|
||||||
|
dispatch(initReorderStats());
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue