diff --git a/app/lib/methods/helpers/mergeSubscriptionsRooms.js b/app/lib/methods/helpers/mergeSubscriptionsRooms.js index 371ddaf3..7e7f839e 100644 --- a/app/lib/methods/helpers/mergeSubscriptionsRooms.js +++ b/app/lib/methods/helpers/mergeSubscriptionsRooms.js @@ -18,7 +18,7 @@ export const merge = (subscription, room) => { subscription.broadcast = room.broadcast; if (room.muted && room.muted.length) { - subscription.muted = room.muted.map(user => ({ value: user })); + subscription.muted = room.muted.filter(user => user).map(user => ({ value: user })); } else { subscription.muted = []; }