From 959289594bd5fd06a233b14ce26a34f0cb87f0e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5var=20Aamb=C3=B8=20Fosstveit?= Date: Thu, 19 Mar 2020 23:27:37 +0100 Subject: [PATCH] Fix lastN --- app/src/RoomClient.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/RoomClient.js b/app/src/RoomClient.js index 1e93f80..1efcab2 100644 --- a/app/src/RoomClient.js +++ b/app/src/RoomClient.js @@ -196,8 +196,8 @@ export default class RoomClient else this._maxSpotlights = mobileLastN; - if (store.getState().settings.lastN !== this._maxSpotlights) - this._maxSpotlights = store.getState().settings.lastN; + store.dispatch( + settingsActions.setLastN(this._maxSpotlights)); // Manager of spotlight this._spotlights = null;