fix(file-sharing) fix handling undefined metadata

This commit is contained in:
Saúl Ibarra Corretgé
2025-05-23 15:33:50 +02:00
committed by Дамян Минков
parent 67b44f4406
commit 7ac43abd03

View File

@@ -56,6 +56,11 @@ ReducerRegistry.register<IFileSharingState>('features/file-sharing',
case UPDATE_CONFERENCE_METADATA: {
const { metadata } = action;
if (!metadata) {
return state;
}
const files = new Map();
for (const [ key, value ] of Object.entries(metadata)) {