Fix seting draw state

This commit is contained in:
astagor 2022-10-14 13:47:32 +02:00
parent 1eeebb5f51
commit f7083c894b

View file

@ -39,6 +39,7 @@ const initialState =
closeMeetingInProgress : false,
clearChatInProgress : false,
clearFileSharingInProgress : false,
inDrawingMode : false,
roomPermissions : null,
userRoles : null,
allowWhenRoleMissing : null
@ -185,6 +186,13 @@ const room = (state = initialState, action) =>
return { ...state, torrentSupport: supported };
}
case 'TOGGLE_DRAWING_MODE':
{
const { started } = action.payload;
return { ...state, inDrawingMode: (started ? true : false) };
}
case 'TOGGLE_JOINED':
{
const joined = true;