feat: Drop unused constants.

This commit is contained in:
Дамян Минков 2021-12-21 14:35:37 -06:00
parent 6682167800
commit f2efdfcbc1
2 changed files with 1 additions and 16 deletions

View File

@ -4,19 +4,3 @@
* Key for this feature.
*/
export const FEATURE_KEY = 'features/breakout-rooms';
/**
* The type of json-message which indicates that json carries
* a request for a participant to move to a specified room.
*/
export const JSON_TYPE_MOVE_TO_ROOM_REQUEST = `${FEATURE_KEY}/move-to-room`;
/**
* The type of json-message which indicates that json carries a request to remove a specified breakout room.
*/
export const JSON_TYPE_REMOVE_BREAKOUT_ROOM = `${FEATURE_KEY}/remove`;
/**
* The type of json-message which indicates that json carries breakout rooms data.
*/
export const JSON_TYPE_UPDATE_BREAKOUT_ROOMS = `${FEATURE_KEY}/update`;

View File

@ -314,6 +314,7 @@ function _handleReceivedMessage({ dispatch, getState },
// Provide a default for for the case when a message is being
// backfilled for a participant that has left the conference.
const participant = getParticipantById(state, id) || {};
console.error('receiveeeed from', id, 'breakout:', APP.store.getState()["features/breakout-rooms"]);
const localParticipant = getLocalParticipant(getState);
const displayName = getParticipantDisplayName(state, id);
const hasRead = participant.local || isChatOpen;