background.ts: Introduce types for redux initialState

This commit is contained in:
Scott Nonnenberg
2022-02-23 10:48:40 -08:00
committed by GitHub
parent 3673b6d101
commit 4763831d3e
42 changed files with 315 additions and 238 deletions

View File

@@ -832,11 +832,14 @@ function groupCallStateChange(
didSomeoneStartPresenting = false;
}
const { ourUuid } = getState().user;
strictAssert(ourUuid, 'groupCallStateChange failed to fetch our uuid');
dispatch({
type: GROUP_CALL_STATE_CHANGE,
payload: {
...payload,
ourUuid: getState().user.ourUuid,
ourUuid,
},
});