Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(file-sharing) fix handling undefined metadata

Saúl Ibarra Corretgé7ac43abd03bd
diff --git a/react/features/file-sharing/reducer.ts b/react/features/file-sharing/reducer.ts
index db4028866c..4f758f153f 100644
--- a/react/features/file-sharing/reducer.ts
+++ b/react/features/file-sharing/reducer.ts
@@ -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)) {